Create index only if it doesn't already exist
authorMatěj Grabovský <mgrabovsky@users.mediawiki.org>
Wed, 26 Jan 2011 10:33:21 +0000 (10:33 +0000)
committerMatěj Grabovský <mgrabovsky@users.mediawiki.org>
Wed, 26 Jan 2011 10:33:21 +0000 (10:33 +0000)
maintenance/sqlite/archives/patch-rename-iwl_prefix.sql

index 08c3ae5..851a6b3 100644 (file)
@@ -2,4 +2,4 @@
 -- Recreates the iwl_prefix for the iwlinks table
 --
 DROP INDEX IF EXISTS /*i*/iwl_prefix;
-CREATE INDEX /*i*/iwl_prefix_from_title ON /*_*/iwlinks (iwl_prefix, iwl_from, iwl_title);
\ No newline at end of file
+CREATE INDEX IF NOT EXISTS /*i*/iwl_prefix_from_title ON /*_*/iwlinks (iwl_prefix, iwl_from, iwl_title);