diff options
author | sgiehl <stefan@piwik.org> | 2015-10-28 22:58:53 +0300 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2015-10-28 22:58:53 +0300 |
commit | 07229d109d80e66cad3e4eb3f7bd2635d5c599fb (patch) | |
tree | 6adbc8b6597b930427becf0bc25c2293b111d88a /plugins/LanguagesManager/Updates | |
parent | fa09ad8aad357574b4cd3561b5583a290943450d (diff) |
move update script to languagesmanager plugin
Diffstat (limited to 'plugins/LanguagesManager/Updates')
-rw-r--r-- | plugins/LanguagesManager/Updates/2.15.1-b1.php | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/LanguagesManager/Updates/2.15.1-b1.php b/plugins/LanguagesManager/Updates/2.15.1-b1.php new file mode 100644 index 0000000000..3465ad7b57 --- /dev/null +++ b/plugins/LanguagesManager/Updates/2.15.1-b1.php @@ -0,0 +1,32 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ + +namespace Piwik\Plugins\LanguagesManager; + +use Piwik\Common; +use Piwik\Updater; +use Piwik\Updates; + + +class Updates_2_15_1_b1 extends Updates +{ + public function getMigrationQueries(Updater $updater) + { + $updateSql = array( + 'ALTER TABLE `' . Common::prefixTable('user_language') + . '` ADD COLUMN `use_12_hour_clock` TINYINT(1) NOT NULL DEFAULT 0 AFTER `language`' => array(1060) + ); + return $updateSql; + } + + public function doUpdate(Updater $updater) + { + $updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater)); + } +} |