You are here

function hosting_client_update_6001 in Hosting 6.2

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

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

See #1093436

File

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