You are here

function hosting_update_6207 in Hosting 7.3

Same name and namespace in other branches
  1. 6.2 hosting.install \hosting_update_6207()
  2. 7.4 hosting.install \hosting_update_6207()

Alter the length available for a site alias to 235.

https://drupal.org/node/1971348

File

./hosting.install, line 542
Define database schemas and update functions for the hosting module.

Code

function hosting_update_6207() {
  $ret = array();
  $spec = array(
    'type' => 'varchar',
    // @see HOSTING_MAX_ALIAS_LENGTH
    'length' => 235,
    'not null' => TRUE,
  );
  db_change_field($ret, 'hosting_context', 'name', 'name', $spec);
  return $ret;
}