You are here

function redirect_update_6 in Redirect 7.2

Same name and namespace in other branches
  1. 7 redirect.install \redirect_update_6()

Add an index on the source and language columns in the redirect table.

File

./redirect.install, line 223
Install, update and uninstall functions for the redirect module.

Code

function redirect_update_6() {
  if (!db_index_exists('redirect', 'source_language')) {
    db_add_index('redirect', 'source_language', array(
      'source',
      'language',
    ));
  }
}