function uc_usps_update_1 in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_usps/uc_usps.install \uc_usps_update_1()
File
- shipping/
uc_usps/ uc_usps.install, line 32
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;
}