r81017 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r81016‎ | r81017 | r81018 >
Date:10:33, 26 January 2011
Author:mgrabovsky
Status:ok
Tags:
Comment:
Create index only if it doesn't already exist
Modified paths:
  • /trunk/phase3/maintenance/sqlite/archives/patch-rename-iwl_prefix.sql (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/sqlite/archives/patch-rename-iwl_prefix.sql
@@ -2,4 +2,4 @@
33 -- Recreates the iwl_prefix for the iwlinks table
44 --
55 DROP INDEX IF EXISTS /*i*/iwl_prefix;
6 -CREATE INDEX /*i*/iwl_prefix_from_title ON /*_*/iwlinks (iwl_prefix, iwl_from, iwl_title);
\ No newline at end of file
 6+CREATE INDEX IF NOT EXISTS /*i*/iwl_prefix_from_title ON /*_*/iwlinks (iwl_prefix, iwl_from, iwl_title);

Status & tagging log