Added one-time promote support via Autopromote::autopromoteOnceHook function. This...
[lhc/web/wiklou.git] / includes / installer / SqliteUpdater.php
index de49ffe..b3a8a21 100644 (file)
@@ -30,8 +30,9 @@ class SqliteUpdater extends DatabaseUpdater {
                        // 1.16
                        array( 'addTable', 'user_properties',                   'patch-user_properties.sql' ),
                        array( 'addTable', 'log_search',                        'patch-log_search.sql' ),
-                       array( 'doLogSearchPopulation' ),
                        array( 'addField', 'logging',       'log_user_text',    'patch-log_user_text.sql' ),
+                       array( 'doLogUsertextPopulation' ), # listed separately from the previous update because 1.16 was released without this update
+                       array( 'doLogSearchPopulation' ),
                        array( 'addTable', 'l10n_cache',                        'patch-l10n_cache.sql' ),
                        array( 'addTable', 'external_user',                     'patch-external_user.sql' ),
                        array( 'addIndex', 'log_search',    'ls_field_val',     'patch-log_search-rename-index.sql' ),
@@ -42,6 +43,7 @@ class SqliteUpdater extends DatabaseUpdater {
 
                        // 1.17
                        array( 'addTable', 'iwlinks',                            'patch-iwlinks.sql' ),
+                       array( 'addTable', 'user_former_groups',             'patch-user_former_groups.sql'),
                        array( 'addIndex', 'iwlinks',   'iwl_prefix_title_from', 'patch-rename-iwl_prefix.sql' ),
                        array( 'addField', 'updatelog', 'ul_value',              'patch-ul_value.sql' ),
                        array( 'addField', 'interwiki',     'iw_api',           'patch-iw_api_and_wikiid.sql' ),
@@ -51,6 +53,14 @@ class SqliteUpdater extends DatabaseUpdater {
                        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' ),
+
+                       // 1.18
+                       array( 'addIndex', 'user',          'user_email',       'patch-user_email_index.sql' ),
+
+                       // 1.19
+                       array( 'addTable', 'config', 'patch-config.sql' ),
                );
        }
 
@@ -66,7 +76,7 @@ class SqliteUpdater extends DatabaseUpdater {
        }
 
        protected function sqliteSetupSearchindex() {
-               $module = $this->db->getFulltextSearchModule();
+               $module = DatabaseSqlite::getFulltextSearchModule();
                $fts3tTable = $this->updateRowExists( 'fts3' );
                if ( $fts3tTable &&  !$module ) {
                        $this->output( '...PHP is missing FTS3 support, downgrading tables...' );