1 redirect.install redirect_update_1004()

Fix redirect table schema of upgraded sites.

File

core/modules/redirect/redirect.install, line 185
Install, update and uninstall functions for the Redirect module.

Code

function redirect_update_1004() {
  if (db_field_exists('redirect', 'status')) {
    if (db_index_exists('redirect', 'status_source_language')) {
      db_drop_index('redirect', 'status_source_language');
    }
    db_drop_field('redirect', 'status');
  }
}