function uc_attribute_update_10 in Ubercart 5
File
- uc_attribute/
uc_attribute.install, line 325
Code
function uc_attribute_update_10() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {uc_attributes} ADD COLUMN description varchar(255) NOT NULL");
break;
case 'pgsql':
db_add_column($ret, 'uc_attributes', 'description', 'varchar(255)', array(
'not null' => true,
'default' => "''",
));
break;
}
return $ret;
}