*Add IF EXISTS clause so tables.sql can be ran to create a db without errors
authorAaron Schulz <aaron@users.mediawiki.org>
Tue, 27 Mar 2007 17:53:43 +0000 (17:53 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Tue, 27 Mar 2007 17:53:43 +0000 (17:53 +0000)
maintenance/archives/patch-indexes.sql

index 23eec07..6a86c0f 100644 (file)
@@ -4,7 +4,7 @@
 -- Fix up table indexes; new to stable release in November 2003
 -- 
 
-ALTER TABLE /*$wgDBprefix*/links
+ALTER TABLE IF EXISTS/*$wgDBprefix*/links
    DROP INDEX l_from,
    ADD INDEX l_from (l_from);