function uc_ups_update_1 in Ubercart 6.2
Same name and namespace in other branches
- 5 shipping/uc_ups/uc_ups.install \uc_ups_update_1()
File
- shipping/
uc_ups/ uc_ups.install, line 93 - Install hooks for uc_ups.module.
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;
}