function uc_usps_update_4 in Ubercart 5
Same name and namespace in other branches
- 6.2 shipping/uc_usps/uc_usps.install \uc_usps_update_4()
File
- shipping/
uc_usps/ uc_usps.install, line 93
Code
function uc_usps_update_4() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {uc_usps_products} CHANGE container container varchar(255) NOT NULL");
break;
case 'pgsql':
db_change_column($ret, 'uc_usps_products', 'container', 'container', 'varchar(255)', array(
'not null' => true,
'default' => "''",
));
break;
}
return $ret;
}