From abeedb102c1a999ae0ab3820400ce36cddb6aca5 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Fri, 9 Jan 2015 22:17:52 +0100 Subject: [PATCH] Add version comments to DatabaseUpdater for 1.25 There are already version comments for the older versions, so also adding comments for the current version to make it easier finding the corresponding version when looking at database changes. As suggested in Ieeb558f9523c11965cbc1941cad4f316c00c85c5 Change-Id: Idf4f52aec4eeb73ec2f830d7d7eaab84c73b6d95 --- includes/installer/MssqlUpdater.php | 2 ++ includes/installer/MysqlUpdater.php | 2 ++ includes/installer/OracleUpdater.php | 2 ++ includes/installer/PostgresUpdater.php | 2 ++ includes/installer/SqliteUpdater.php | 2 ++ 5 files changed, 10 insertions(+) diff --git a/includes/installer/MssqlUpdater.php b/includes/installer/MssqlUpdater.php index 2d7afc1e72..5eef335532 100644 --- a/includes/installer/MssqlUpdater.php +++ b/includes/installer/MssqlUpdater.php @@ -42,6 +42,8 @@ class MssqlUpdater extends DatabaseUpdater { // 1.24 array( 'addField', 'page', 'page_lang', 'patch-page-page_lang.sql'), + + // 1.25 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' ), diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index d7b0dec82c..7a36f0195f 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -266,6 +266,8 @@ class MysqlUpdater extends DatabaseUpdater { 'patch-oi_major_mime-chemical.sql' ), array( 'modifyField', 'filearchive', 'fa_major_mime', 'patch-fa_major_mime-chemical.sql' ), + + // 1.25 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' ), diff --git a/includes/installer/OracleUpdater.php b/includes/installer/OracleUpdater.php index c731d98991..03dbd1ce9c 100644 --- a/includes/installer/OracleUpdater.php +++ b/includes/installer/OracleUpdater.php @@ -102,6 +102,8 @@ class OracleUpdater extends DatabaseUpdater { // 1.24 array( 'addField', 'page', 'page_lang', 'patch-page-page_lang.sql' ), + + // 1.25 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' ), diff --git a/includes/installer/PostgresUpdater.php b/includes/installer/PostgresUpdater.php index 3b1c579d00..bc25455c83 100644 --- a/includes/installer/PostgresUpdater.php +++ b/includes/installer/PostgresUpdater.php @@ -418,6 +418,8 @@ class PostgresUpdater extends DatabaseUpdater { array( 'addPgField', 'pagelinks', 'pl_from_namespace', 'INTEGER NOT NULL DEFAULT 0' ), array( 'addPgField', 'templatelinks', 'tl_from_namespace', 'INTEGER NOT NULL DEFAULT 0' ), array( 'addPgField', 'imagelinks', 'il_from_namespace', 'INTEGER NOT NULL DEFAULT 0' ), + + // 1.25 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' ), diff --git a/includes/installer/SqliteUpdater.php b/includes/installer/SqliteUpdater.php index 490cdb7866..81304c414b 100644 --- a/includes/installer/SqliteUpdater.php +++ b/includes/installer/SqliteUpdater.php @@ -137,6 +137,8 @@ class SqliteUpdater extends DatabaseUpdater { array( 'addField', 'pagelinks', 'pl_from_namespace', 'patch-pl_from_namespace.sql' ), array( 'addField', 'templatelinks', 'tl_from_namespace', 'patch-tl_from_namespace.sql' ), array( 'addField', 'imagelinks', 'il_from_namespace', 'patch-il_from_namespace.sql' ), + + // 1.25 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' ), -- 2.20.1