function recipe_update_7002 in Recipe 7.2
Same name and namespace in other branches
- 7 recipe.install \recipe_update_7002()
Adds cooktime column to the recipe table.
File
- ./
recipe.install, line 329 - Install, update and uninstall functions for the recipe module.
Code
function recipe_update_7002() {
// Add the new cooktime field to the recipe table.
db_add_field('recipe', 'cooktime', array(
'type' => 'int',
'unsigned' => TRUE,
'default' => 0,
));
// Refresh RDF mapping to pick up new field.
if (module_exists("rdf")) {
$modules = module_implements('rdf_mapping');
rdf_modules_installed($modules);
}
}