You are here

function hosting_task_update_6000 in Hosting 6.2

Same name and namespace in other branches
  1. 7.4 task/hosting_task.install \hosting_task_update_6000()
  2. 7.3 task/hosting_task.install \hosting_task_update_6000()

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 163

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