diff options
Diffstat (limited to 'core/Updates/0.2.12.php')
-rw-r--r-- | core/Updates/0.2.12.php | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/core/Updates/0.2.12.php b/core/Updates/0.2.12.php index 3a4b33ac8d..5227f68586 100644 --- a/core/Updates/0.2.12.php +++ b/core/Updates/0.2.12.php @@ -13,24 +13,15 @@ /** * @package Updates */ -class Piwik_Updates_0_2_12 extends Piwik_Updates +class Piwik_Updates_0_2_12 implements Piwik_iUpdate { - static function getSql($adapter = 'PDO_MYSQL') + static function update() { - return array( - 'ALTER TABLE `'. Piwik_Common::prefixTable('site') .'` + Piwik_Updater::updateDatabase(__FILE__, array( + 'ALTER TABLE `'. Piwik::prefixTable('site') .'` CHANGE `ts_created` `ts_created` TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL' => false, - 'ALTER TABLE `'. Piwik_Common::prefixTable('log_visit') .'` + 'ALTER TABLE `'. Piwik::prefixTable('log_visit') .'` DROP `config_color_depth`' => false, - - // 0.2.12 [673] - // Note: requires INDEX privilege - 'DROP INDEX index_idaction ON `'. Piwik_Common::prefixTable('log_action') .'`' => '1091', - ); - } - - static function update() - { - Piwik_Updater::updateDatabase(__FILE__, self::getSql()); + )); } } |