r89526 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89525‎ | r89526 | r89527 >
Date:19:39, 5 June 2011
Author:maxsem
Status:ok
Tags:
Comment:
SQLite: sync a couple of indexes with MySQL
Modified paths:
  • /trunk/phase3/includes/installer/SqliteUpdater.php (modified) (history)
  • /trunk/phase3/maintenance/archives/patch-archive_ar_revid.sql (modified) (history)
  • /trunk/phase3/maintenance/sqlite/archives/patch-archive_kill_ar_page_revid.sql (added) (history)

Diff [purge]

Index: trunk/phase3/maintenance/archives/patch-archive_ar_revid.sql
@@ -1,4 +1,3 @@
22 -- Hopefully temporary index.
33 -- For https://bugzilla.wikimedia.org/show_bug.cgi?id=21279
4 -ALTER TABLE /*$wgDBprefix*/archive
5 - ADD INDEX ar_revid ( ar_rev_id );
\ No newline at end of file
 4+CREATE INDEX /*i*/ar_revid ON /*$wgDBprefix*/archive ( ar_rev_id );
\ No newline at end of file
Index: trunk/phase3/maintenance/sqlite/archives/patch-archive_kill_ar_page_revid.sql
@@ -0,0 +1,3 @@
 2+-- Used for killing the wrong index added during SVN for 1.17
 3+-- Won't affect most people, but it doesn't need to exist
 4+DROP INDEX IF EXISTS ar_page_revid;
\ No newline at end of file
Index: trunk/phase3/includes/installer/SqliteUpdater.php
@@ -52,6 +52,8 @@
5353 array( 'doCollationUpdate' ),
5454 array( 'addTable', 'msg_resource', 'patch-msg_resource.sql' ),
5555 array( 'addTable', 'module_deps', 'patch-module_deps.sql' ),
 56+ array( 'dropIndex', 'archive', 'ar_page_revid', 'patch-archive_kill_ar_page_revid.sql' ),
 57+ array( 'addIndex', 'archive', 'ar_revid', 'patch-archive_ar_revid.sql' ),
5658
5759 // 1.19
5860 array( 'addTable', 'config', 'patch-config.sql' ),

Follow-up revisions

RevisionCommit summaryAuthorDate
r89527Folow-up r89526: tabs and eol-style :(maxsem19:46, 5 June 2011

Status & tagging log