function recipe_update_1 in Recipe 5
File
- ./
recipe.install, line 88
Code
function recipe_update_1() {
$ret = array();
$ret[] = update_sql("ALTER TABLE {recipe_node_ingredient} DROP weight");
switch ($GLOBALS['db_type']) {
case 'pgsql':
db_add_column($ret, 'recipe', 'preptime', 'integer', array(
'not null' => TRUE,
'default' => 0,
));
break;
case 'mysql':
case 'mysqli':
$ret[] = update_sql("ALTER TABLE {recipe} ADD COLUMN preptime int(10) NOT NULL DEFAULT 0");
break;
}
return $ret;
}