You are here

function hosting_alias_update_2 in Hosting 7.4

Same name and namespace in other branches
  1. 6.2 alias/hosting_alias.install \hosting_alias_update_2()
  2. 7.3 alias/hosting_alias.install \hosting_alias_update_2()

Implements hook_update_N().

Add the redirection field.

File

alias/hosting_alias.install, line 65
Define database schema and update function for the site aliases module.

Code

function hosting_alias_update_2() {
  $ret = array();
  db_add_field($ret, 'hosting_site_alias', 'redirection', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
    'size' => 'tiny',
  ));
  return $ret;
}