diff options
author | diosmosis <benaka@piwik.pro> | 2015-02-26 01:48:15 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-02-26 01:48:15 +0300 |
commit | 5a830fbc1ba686feaa6e6437ab3fc4666a11fed5 (patch) | |
tree | ea1da4f0cedfbd407f08f63a6e5471371c1eff97 /core/Columns | |
parent | 9ac8e1d722d348a17b1a279725be1dc185d852b6 (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/Columns')
-rw-r--r-- | core/Columns/Updater.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Columns/Updater.php b/core/Columns/Updater.php index 7161bda84c..3de83592e8 100644 --- a/core/Columns/Updater.php +++ b/core/Columns/Updater.php @@ -33,7 +33,7 @@ class Updater extends \Piwik\Updates * // and user will have to manually run the query * ) */ - public static function getSql(PiwikUpdater $updater) + public static function getMigrationQueries(PiwikUpdater $updater) { $sqls = array(); @@ -53,9 +53,9 @@ class Updater extends \Piwik\Updates /** * Incremental version update */ - public static function update(PiwikUpdater $updater) + public static function doUpdate(PiwikUpdater $updater) { - foreach (self::getSql($updater) as $sql => $errorCode) { + foreach (self::getMigrationQueries($updater) as $sql => $errorCode) { try { Db::exec($sql); } catch (\Exception $e) { |