You are here

function domain_update_6100 in Domain Access 6.2

Updates from 5.x.1.2 to 5.x.1.3. This change affected the size of the columns for 'subdomain' and 'sitename'. See http://drupal.org/node/244142

File

./domain.install, line 89
Install file.

Code

function domain_update_6100() {
  $ret = array();
  db_drop_index($ret, 'domain', 'subdomain');
  db_change_field($ret, 'domain', 'subdomain', 'subdomain', array(
    'type' => 'varchar',
    'length' => '255',
    'not null' => TRUE,
    'default' => '',
  ));
  db_add_index($ret, 'domain', 'subdomain', array(
    'subdomain',
  ));
  db_change_field($ret, 'domain', 'sitename', 'sitename', array(
    'type' => 'varchar',
    'length' => '255',
    'not null' => TRUE,
    'default' => '',
  ));
  return $ret;
}