diff options
author | diosmosis <benaka@piwik.pro> | 2015-03-10 16:11:20 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-03-10 16:11:20 +0300 |
commit | c54b3b7738f9e8113b3c0d86229420b076bc8494 (patch) | |
tree | b172cbba20c946c6673ccd832e20eccad98b66fe /core/Updates.php | |
parent | 79f9b8b98368539839741ae5d7bd68733de3468e (diff) |
More refactoring to Updates.php base & Columns\Updater, make Updates.php methods instance methods, create Update instances via DI, make Columns\Updater use instance methods instead of static, and add integration test for Columns\Updater.
Diffstat (limited to 'core/Updates.php')
-rw-r--r-- | core/Updates.php | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/core/Updates.php b/core/Updates.php index 206056ab63..2ef3e0836d 100644 --- a/core/Updates.php +++ b/core/Updates.php @@ -16,7 +16,7 @@ namespace Piwik; abstract class Updates { /** - * @deprecated since v2.12.0 + * @deprecated since v2.12.0 use getMigrationQueries() instead */ static function getSql() { @@ -24,7 +24,7 @@ abstract class Updates } /** - * @deprecated since v2.12.0 + * @deprecated since v2.12.0 use doUpdate() instead */ static function update() { @@ -39,7 +39,7 @@ abstract class Updates * // and user will have to manually run the query * ) */ - public static function getMigrationQueries(Updater $updater) + public function getMigrationQueries(Updater $updater) { return static::getSql(); } @@ -47,7 +47,7 @@ abstract class Updates /** * Incremental version update */ - public static function doUpdate(Updater $updater) + public function doUpdate(Updater $updater) { static::update(); } @@ -61,7 +61,7 @@ abstract class Updates * * @return bool */ - static function isMajorUpdate() + public static function isMajorUpdate() { return false; } @@ -69,7 +69,7 @@ abstract class Updates /** * Helper method to enable maintenance mode during large updates */ - static function enableMaintenanceMode() + public static function enableMaintenanceMode() { $config = Config::getInstance(); @@ -87,7 +87,7 @@ abstract class Updates /** * Helper method to disable maintenance mode after large updates */ - static function disableMaintenanceMode() + public static function disableMaintenanceMode() { $config = Config::getInstance(); |