update Piwik to version 2.16 (fixes #91)
This commit is contained in:
parent
296343bf3b
commit
d885a4baa9
5833 changed files with 418860 additions and 226988 deletions
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
* Piwik - free/libre analytics platform
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
|
|
@ -9,7 +9,6 @@
|
|||
namespace Piwik\Updates;
|
||||
|
||||
use Piwik\Common;
|
||||
use Piwik\Db;
|
||||
use Piwik\Option;
|
||||
use Piwik\Updater;
|
||||
use Piwik\Updates;
|
||||
|
|
@ -18,7 +17,7 @@ use Piwik\Updates;
|
|||
*/
|
||||
class Updates_2_0_a13 extends Updates
|
||||
{
|
||||
public static function getSql()
|
||||
public function getMigrationQueries(Updater $updater)
|
||||
{
|
||||
// Renaming old archived records now that the plugin is called Referrers
|
||||
$sql = array();
|
||||
|
|
@ -44,12 +43,12 @@ class Updates_2_0_a13 extends Updates
|
|||
return $sql;
|
||||
}
|
||||
|
||||
public static function update()
|
||||
public function doUpdate(Updater $updater)
|
||||
{
|
||||
// delete schema version_
|
||||
Option::delete('version_Referers');
|
||||
|
||||
Updater::updateDatabase(__FILE__, self::getSql());
|
||||
$updater->executeMigrationQueries(__FILE__, $this->getMigrationQueries($updater));
|
||||
|
||||
// old plugins deleted in 2.0-a17 update file
|
||||
|
||||
|
|
@ -61,6 +60,5 @@ class Updates_2_0_a13 extends Updates
|
|||
\Piwik\Plugin\Manager::getInstance()->activatePlugin('ScheduledReports');
|
||||
} catch (\Exception $e) {
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue