function uc_quote_update_1 in Ubercart 5
File
- shipping/
uc_quote/ uc_quote.install, line 112
Code
function uc_quote_update_1() {
variable_del('uc_store_shipping_quote_type');
$ret = array();
$ret[] = update_sql("DROP TABLE {uc_quote_types}");
$ret[] = update_sql("DROP TABLE {uc_order_fulfillments}");
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {uc_order_quotes} CHANGE COLUMN accessorials accessorials varchar(255) NOT NULL");
break;
case 'pgsql':
db_change_column($ret, 'uc_order_quotes', 'accessorials', 'accessorials', 'varchar(255)', array(
'not null' => true,
'default' => "''",
));
break;
}
return $ret;
}