You are here

function hosting_task_update_6000 in Hostmaster (Aegir) 6

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 modules/hosting/package/hosting_package.install
hosting_package_update_6001 in modules/hosting/package/hosting_package.install

File

modules/hosting/task/hosting_task.install, line 165

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;
}