function uc_shipping_update_1 in Ubercart 5
File
- shipping/
uc_shipping/ uc_shipping.install, line 123
Code
function uc_shipping_update_1() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {uc_packages} CHANGE units length_units varchar(255) NULL");
break;
case 'pgsql':
db_change_column($ret, 'uc_packages', 'units', 'length_units', 'varchar(255)', array(
'not null' => false,
));
break;
}
return $ret;
}