| 1 |
<?php
|
| 2 |
// $Id: $
|
| 3 |
|
| 4 |
function taxes_install() {
|
| 5 |
|
| 6 |
switch ($GLOBALS['db_type']) {
|
| 7 |
case 'pgsql':
|
| 8 |
case 'mysql':
|
| 9 |
case 'mysqli':
|
| 10 |
db_query("CREATE TABLE {business_taxes} (
|
| 11 |
tid int(10) unsigned NOT NULL auto_increment,
|
| 12 |
term_id int(10) unsigned NOT NULL default '0',
|
| 13 |
name varchar(255) NOT NULL default '',
|
| 14 |
rate int(10) unsigned NOT NULL default '0',
|
| 15 |
weight tinyint(4) NOT NULL default '0',
|
| 16 |
PRIMARY KEY (tid),
|
| 17 |
KEY term_id (term_id)
|
| 18 |
) /*!40100 DEFAULT CHARACTER SET utf8 */;");
|
| 19 |
break;
|
| 20 |
}
|
| 21 |
|
| 22 |
// Notify of changes
|
| 23 |
drupal_set_message(t('Business taxes module was successfully installed with default options. To customize default terms, please view the <a href="%settings">terms settings page</a>.', array('%settings' => url('admin/business/terms'))));
|
| 24 |
|
| 25 |
}
|