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/Updater.php | |
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/Updater.php')
-rw-r--r-- | core/Updater.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Updater.php b/core/Updater.php index d1cac3c3f4..7f19a03ae3 100644 --- a/core/Updater.php +++ b/core/Updater.php @@ -200,7 +200,7 @@ class Updater $classNames[] = $className; - $queriesForComponent = call_user_func(array($className, 'getSql'), $this); + $queriesForComponent = call_user_func(array($className, 'getMigrationQueries'), $this); foreach ($queriesForComponent as $query => $error) { $queries[] = $query . ';'; } @@ -249,7 +249,7 @@ class Updater ) { $this->executeListenerHook('onComponentUpdateFileStarting', $componentName, $file, $className, $fileVersion); - call_user_func(array($className, 'update'), $this); + call_user_func(array($className, 'doUpdate'), $this); $this->executeListenerHook('onComponentUpdateFileFinished', $componentName, $file, $className, $fileVersion); |