You are here

function hosting_task_update_6005 in Hosting 7.3

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

Implements hook_update_N().

Remove DEFAULT value on a LONGTEXT fields.

This was breaking in MariaDB and preventing installation. On MySQL it was silently ignored, so the installation works, but the defaults are not in the table anyway.

See #969326

File

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

Code

function hosting_task_update_6005() {
  $ret = array();
  db_change_field($ret, 'hosting_task_log', 'error', 'error', array(
    'type' => 'text',
    'size' => 'big',
    'not null' => TRUE,
  ));
  return $ret;
}