function uc_product_update_10 in Ubercart 5
File
- uc_product/
uc_product.install, line 308 - Database installation, uninstallation, and updates for the product module.
Code
function uc_product_update_10() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {uc_products} ADD shippable tinyint(2) NOT NULL default 1");
break;
case 'pgsql':
db_add_column($ret, 'uc_products', 'shippable', 'tinyint', array(
'not null' => true,
'default' => 1,
));
break;
}
return $ret;
}