function hosting_task_update_1 in Hosting 5
Same name and namespace in other branches
- 6.2 task/hosting_task.install \hosting_task_update_1()
- 7.4 task/hosting_task.install \hosting_task_update_1()
- 7.3 task/hosting_task.install \hosting_task_update_1()
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 51
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;
}