You are here

function hosting_client_update_6001 in Hostmaster (Aegir) 6

Use VARCHAR on contact_type field so that we support MariaDB correctly.

See #1093436

File

modules/hosting/client/hosting_client.install, line 280
Install, update and uninstall for the clients module.

Code

function hosting_client_update_6001() {
  $ret = array();
  db_change_field($ret, 'hosting_client_user', 'contact_type', 'contact_type', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ));
  return $ret;
}