function uc_usps_install in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_usps/uc_usps.install \uc_usps_install()
File
- shipping/
uc_usps/ uc_usps.install, line 3
Code
function uc_usps_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {uc_usps_products} (\n `vid` mediumint(9) unsigned NOT NULL default 0,\n `nid` mediumint(9) unsigned NOT NULL default 0,\n `container` varchar(255) NOT NULL,\n PRIMARY KEY (`vid`)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ;");
break;
case 'pgsql':
db_query("CREATE TABLE {uc_usps_products} (\n vid int_unsigned NOT NULL default 0,\n nid int_unsigned NOT NULL default 0,\n container varchar(255) NOT NULL default '',\n PRIMARY KEY (vid)\n );");
break;
}
}