Remove SessionManager, temporarily
[lhc/web/wiklou.git] / includes / installer / MysqlUpdater.php
index aa60c01..9b5635b 100644 (file)
@@ -183,7 +183,6 @@ class MysqlUpdater extends DatabaseUpdater {
                        array( 'addField', 'categorylinks', 'cl_collation', 'patch-categorylinks-better-collation.sql' ),
                        array( 'doClFieldsUpdate' ),
                        array( 'doCollationUpdate' ),
-                       array( 'addTable', 'msg_resource', 'patch-msg_resource.sql' ),
                        array( 'addTable', 'module_deps', 'patch-module_deps.sql' ),
                        array( 'dropIndex', 'archive', 'ar_page_revid', 'patch-archive_kill_ar_page_revid.sql' ),
                        array( 'addIndex', 'archive', 'ar_revid', 'patch-archive_ar_revid.sql' ),
@@ -275,6 +274,10 @@ class MysqlUpdater extends DatabaseUpdater {
                        array( 'dropTable', 'hitcounter' ),
                        array( 'dropField', 'site_stats', 'ss_total_views', 'patch-drop-ss_total_views.sql' ),
                        array( 'dropField', 'page', 'page_counter', 'patch-drop-page_counter.sql' ),
+
+                       // 1.27
+                       array( 'dropTable', 'msg_resource_links' ),
+                       array( 'dropTable', 'msg_resource' ),
                );
        }
 
@@ -832,7 +835,7 @@ class MysqlUpdater extends DatabaseUpdater {
                        foreach ( $res as $row ) {
                                $count = ( $count + 1 ) % 100;
                                if ( $count == 0 ) {
-                                       wfWaitForSlaves();
+                                       wfGetLBFactory()->waitForReplication( array( 'wiki' => wfWikiID() ) );
                                }
                                $this->db->insert( 'templatelinks',
                                        array(