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