aboutsummaryrefslogtreecommitdiffstats
path: root/includes/installer/DatabaseInstaller.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/installer/DatabaseInstaller.php')
-rw-r--r--includes/installer/DatabaseInstaller.php14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/installer/DatabaseInstaller.php b/includes/installer/DatabaseInstaller.php
index c7e27198f67b..d9241e529b93 100644
--- a/includes/installer/DatabaseInstaller.php
+++ b/includes/installer/DatabaseInstaller.php
@@ -123,11 +123,10 @@ abstract class DatabaseInstaller {
/**
* Perform database upgrades
- * @todo make abstract
+ *
+ * @return Boolean
*/
- /*abstract*/ function doUpgrade() {
- return false;
- }
+ public abstract function doUpgrade();
/**
* Allow DB installers a chance to make last-minute changes before installation
@@ -139,6 +138,13 @@ abstract class DatabaseInstaller {
}
/**
+ * Allow DB installers a chance to make checks before upgrade.
+ */
+ public function preUpgrade() {
+
+ }
+
+ /**
* Get an array of MW configuration globals that will be configured by this class.
*/
public function getGlobalNames() {