function uc_usps_update_1 in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_usps/uc_usps.install \uc_usps_update_1()
File
- shipping/
uc_usps/ uc_usps.install, line 94 - Install hooks for uc_usps.module.
Code
function uc_usps_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
case 'pgsql':
$ret[] = update_sql("ALTER TABLE {uc_usps_products} DROP COLUMN qty");
$ret[] = update_sql("ALTER TABLE {uc_usps_products} DROP COLUMN length");
$ret[] = update_sql("ALTER TABLE {uc_usps_products} DROP COLUMN width");
$ret[] = update_sql("ALTER TABLE {uc_usps_products} DROP COLUMN height");
$ret[] = update_sql("ALTER TABLE {uc_usps_products} DROP COLUMN units");
break;
}
return $ret;
}