function hosting_task_update_6000 in Hosting 7.4
Same name and namespace in other branches
- 6.2 task/hosting_task.install \hosting_task_update_6000()
- 7.3 task/hosting_task.install \hosting_task_update_6000()
Implements hook_update_N().
Add a delta column to tasks so that we have a measure of duration of tasks
2 calls to hosting_task_update_6000()
- hosting_package_update_10 in package/
hosting_package.install - hosting_package_update_6001 in package/
hosting_package.install
File
- task/
hosting_task.install, line 178 - Define the database schema and update functions for the hosting_task module.
Code
function hosting_task_update_6000() {
$ret = hosting_package_update_6002();
// This update needs to be run before tasks can be added, in other update functions.
if (!variable_get('hosting_task_update_6000_run', FALSE)) {
db_add_field($ret, 'hosting_task', 'delta', array(
'type' => 'int',
'not null' => TRUE,
'default' => 0,
));
variable_set('hosting_task_update_6000_run', TRUE);
}
return $ret;
}