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:
Diffstat (limited to 'core/Updates/0.2.33.php')
-rw-r--r--core/Updates/0.2.33.php19
1 files changed, 3 insertions, 16 deletions
diff --git a/core/Updates/0.2.33.php b/core/Updates/0.2.33.php
index ed94e78fb8..ce936f5731 100644
--- a/core/Updates/0.2.33.php
+++ b/core/Updates/0.2.33.php
@@ -13,18 +13,10 @@
/**
* @package Updates
*/
-class Piwik_Updates_0_2_33 extends Piwik_Updates
+class Piwik_Updates_0_2_33 implements Piwik_iUpdate
{
- static function getSql($adapter = 'PDO_MYSQL')
+ static function update()
{
- $sqlarray = array(
- // 0.2.33 [1020]
- 'ALTER TABLE `'. Piwik_Common::prefixTable('user_dashboard') .'`
- CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci ' => '1146',
- 'ALTER TABLE `'. Piwik_Common::prefixTable('user_language') .'`
- CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci ' => '1146',
- );
-
// alter table to set the utf8 collation
$tablesToAlter = Piwik::getTablesInstalled(true);
foreach($tablesToAlter as $table) {
@@ -32,11 +24,6 @@ class Piwik_Updates_0_2_33 extends Piwik_Updates
CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci ' ] = false;
}
- return $sqlarray;
- }
-
- static function update()
- {
- Piwik_Updater::updateDatabase(__FILE__, self::getSql());
+ Piwik_Updater::updateDatabase(__FILE__, $sqlarray);
}
}