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.13.php')
-rw-r--r--core/Updates/0.2.13.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/core/Updates/0.2.13.php b/core/Updates/0.2.13.php
index fb8a875f54..11f49ff709 100644
--- a/core/Updates/0.2.13.php
+++ b/core/Updates/0.2.13.php
@@ -13,14 +13,20 @@
/**
* @package Updates
*/
-class Piwik_Updates_0_2_13 implements Piwik_iUpdate
+class Piwik_Updates_0_2_13 extends Piwik_Updates
{
- static function update()
+ static function getSql($adapter = 'PDO_MYSQL')
{
$tables = Piwik::getTablesCreateSql();
- Piwik_Updater::updateDatabase(__FILE__, array(
- 'DROP TABLE IF EXISTS `'. Piwik::prefixTable('option') .'`' => false,
+
+ return array(
+ 'DROP TABLE IF EXISTS `'. Piwik_Common::prefixTable('option') .'`' => false,
$tables['option'] => false,
- ));
+ );
+ }
+
+ static function update()
+ {
+ Piwik_Updater::updateDatabase(__FILE__, self::getSql());
}
}