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:
authorbarbushin <barbushin@gmail.com>2015-07-14 17:23:34 +0300
committerdiosmosis <benaka@piwik.pro>2015-08-22 01:44:22 +0300
commitad08eb78007b527f5b0efa742285877fbdf67ab1 (patch)
tree7ad9f6b6a253dc4ae040b14c84a28bcad03e9de6 /core/Updates/1.8.3-b1.php
parent05b6c82c6ed99c9fa0b2c2ef1b465b2d18926b97 (diff)
Migrate updates to use new(not deprecated) methods
Diffstat (limited to 'core/Updates/1.8.3-b1.php')
-rw-r--r--core/Updates/1.8.3-b1.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/Updates/1.8.3-b1.php b/core/Updates/1.8.3-b1.php
index 51d6d68d06..fb2bfaa4d5 100644
--- a/core/Updates/1.8.3-b1.php
+++ b/core/Updates/1.8.3-b1.php
@@ -20,7 +20,7 @@ use Piwik\Updates;
class Updates_1_8_3_b1 extends Updates
{
- public static function getSql()
+ public function getMigrationQueries(Updater $updater)
{
return array(
'ALTER TABLE `' . Common::prefixTable('site') . '`
@@ -44,9 +44,9 @@ class Updates_1_8_3_b1 extends Updates
);
}
- public static function update()
+ public function doUpdate(Updater $updater)
{
- Updater::updateDatabase(__FILE__, self::getSql());
+ $updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
if (!\Piwik\Plugin\Manager::getInstance()->isPluginLoaded('ScheduledReports')) {
return;
}