diff options
Diffstat (limited to 'core/Updates/0.2.37.php')
-rw-r--r-- | core/Updates/0.2.37.php | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/core/Updates/0.2.37.php b/core/Updates/0.2.37.php index 51d77a6c32..ed1a36160d 100644 --- a/core/Updates/0.2.37.php +++ b/core/Updates/0.2.37.php @@ -13,19 +13,14 @@ /** * @package Updates */ -class Piwik_Updates_0_2_37 extends Piwik_Updates +class Piwik_Updates_0_2_37 implements Piwik_iUpdate { - static function getSql($adapter = 'PDO_MYSQL') + static function update() { - return array( - 'DELETE FROM `'. Piwik_Common::prefixTable('user_dashboard') ."` + Piwik_Updater::updateDatabase(__FILE__, array( + 'DELETE FROM `'. Piwik::prefixTable('user_dashboard') ."` WHERE layout LIKE '%.getLastVisitsGraph%' OR layout LIKE '%.getLastVisitsReturningGraph%'" => false, - ); - } - - static function update() - { - Piwik_Updater::updateDatabase(__FILE__, self::getSql()); + )); } } |