You are here

function hosting_task_update_6005 in Hostmaster (Aegir) 6

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

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

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