You are here

function hosting_client_update_6001 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 client/hosting_client.install \hosting_client_update_6001()
  2. 7.3 client/hosting_client.install \hosting_client_update_6001()

Implements hook_update_N().

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

See #1093436

File

client/hosting_client.install, line 308
Define database schema, install and update functions for the hosting_client 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;
}