diff options
author | barbushin <barbushin@gmail.com> | 2015-07-14 17:23:34 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2015-08-22 01:44:22 +0300 |
commit | ad08eb78007b527f5b0efa742285877fbdf67ab1 (patch) | |
tree | 7ad9f6b6a253dc4ae040b14c84a28bcad03e9de6 /plugins/DevicesDetection | |
parent | 05b6c82c6ed99c9fa0b2c2ef1b465b2d18926b97 (diff) |
Migrate updates to use new(not deprecated) methods
Diffstat (limited to 'plugins/DevicesDetection')
-rw-r--r-- | plugins/DevicesDetection/Updates/1.14.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/DevicesDetection/Updates/1.14.php b/plugins/DevicesDetection/Updates/1.14.php index 7430844a50..81ac962c1b 100644 --- a/plugins/DevicesDetection/Updates/1.14.php +++ b/plugins/DevicesDetection/Updates/1.14.php @@ -15,7 +15,7 @@ use Piwik\Updates; class Updates_1_14 extends Updates { - static function getSql() + public function getMigrationQueries(Updater $updater) { return array( 'ALTER TABLE `' . Common::prefixTable('log_visit') . '` @@ -29,9 +29,9 @@ class Updates_1_14 extends Updates return true; } - static function update() + public function doUpdate(Updater $updater) { - Updater::updateDatabase(__FILE__, self::getSql()); + $updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater)); } } |