You are here

function hosting_update_6207 in Hosting 6.2

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

Alter the length available for a site alias to 235.

https://drupal.org/node/1971348

File

./hosting.install, line 521
Install, update and uninstall 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;
}