You are here

function themekey_redirect_update_7300 in ThemeKey 7.3

Introduce "append path" option.

File

themekey_redirect/themekey_redirect.install, line 35
Database schema of

Code

function themekey_redirect_update_7300() {

  // Because of an erroneous update hook implementation of in alpha-2 we have
  // to check if the field already exists.
  if (!db_field_exists('themekey_redirect_rules', 'append_path')) {
    $field = array(
      'type' => 'int',
      'unsigned' => TRUE,
      'not null' => TRUE,
      'default' => '1',
      'initial' => '1',
    );
    db_add_field('themekey_redirect_rules', 'append_path', $field);
  }
}