Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordiosmosis <benaka@piwik.pro>2015-02-26 01:48:15 +0300
committerdiosmosis <benaka@piwik.pro>2015-02-26 01:48:15 +0300
commit5a830fbc1ba686feaa6e6437ab3fc4666a11fed5 (patch)
treeea1da4f0cedfbd407f08f63a6e5471371c1eff97 /core/Updates.php
parent9ac8e1d722d348a17b1a279725be1dc185d852b6 (diff)
Refs #7276, add integration test for core:update command, fix strict notice errors caused by change to Updates.php and add some more functionality to ConsoleCommandTestCase base class.
Diffstat (limited to 'core/Updates.php')
-rw-r--r--core/Updates.php22
1 files changed, 19 insertions, 3 deletions
diff --git a/core/Updates.php b/core/Updates.php
index 36f538cddc..206056ab63 100644
--- a/core/Updates.php
+++ b/core/Updates.php
@@ -16,6 +16,21 @@ namespace Piwik;
abstract class Updates
{
/**
+ * @deprecated since v2.12.0
+ */
+ static function getSql()
+ {
+ return array();
+ }
+
+ /**
+ * @deprecated since v2.12.0
+ */
+ static function update()
+ {
+ }
+
+ /**
* Return SQL to be executed in this update
*
* @return array(
@@ -24,16 +39,17 @@ abstract class Updates
* // and user will have to manually run the query
* )
*/
- static function getSql(Updater $updater)
+ public static function getMigrationQueries(Updater $updater)
{
- return array();
+ return static::getSql();
}
/**
* Incremental version update
*/
- static function update(Updater $updater)
+ public static function doUpdate(Updater $updater)
{
+ static::update();
}
/**