function uc_ups_update_1 in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_ups/uc_ups.install \uc_ups_update_1()
File
- shipping/
uc_ups/ uc_ups.install, line 42
Code
function uc_ups_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {uc_ups_products} ADD COLUMN units varchar(255) NOT NULL default 'in' AFTER height");
break;
case 'pgsql':
db_add_column($ret, 'uc_ups_products', 'units', 'varchar(255)', array(
'not null' => true,
'default' => 'in',
));
break;
}
return $ret;
}