You are here

function hosting_task_update_1 in Hosting 7.3

Same name and namespace in other branches
  1. 5 task/hosting_task.install \hosting_task_update_1()
  2. 6.2 task/hosting_task.install \hosting_task_update_1()
  3. 7.4 task/hosting_task.install \hosting_task_update_1()

Implements hook_update_N().

Add the error column to hosting_task_log, so we can extract the specific error codes, not just the messages.

File

task/hosting_task.install, line 141
Define the database schema and update functions for the hosting_task module.

Code

function hosting_task_update_1() {
  $ret = array();
  $ret[] = update_sql("ALTER TABLE {hosting_task_log} \n    ADD COLUMN error longtext NOT NULL default ''");
  $ret[] = update_sql("ALTER TABLE {hosting_task_log} \n    DROP COLUMN severity");
  return $ret;
}