PDF rausgenommen
This commit is contained in:
40
msd2/tracking/piwik/core/Updates/3.7.0-b1.php
Normal file
40
msd2/tracking/piwik/core/Updates/3.7.0-b1.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?php
|
||||
/**
|
||||
* Matomo - free/libre analytics platform
|
||||
*
|
||||
* @link https://matomo.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
|
||||
namespace Piwik\Updates;
|
||||
|
||||
use Piwik\Updater;
|
||||
use Piwik\Updates as PiwikUpdates;
|
||||
use Piwik\Updater\Migration\Factory as MigrationFactory;
|
||||
|
||||
class Updates_3_7_0_b1 extends PiwikUpdates
|
||||
{
|
||||
/**
|
||||
* @var MigrationFactory
|
||||
*/
|
||||
private $migration;
|
||||
|
||||
public function __construct(MigrationFactory $factory)
|
||||
{
|
||||
$this->migration = $factory;
|
||||
}
|
||||
|
||||
public function getMigrations(Updater $updater)
|
||||
{
|
||||
return [
|
||||
$this->migration->db->addColumn('report', 'evolution_graph_within_period', 'TINYINT(4) NOT NULL DEFAULT 0'),
|
||||
$this->migration->db->addColumn('report', 'evolution_graph_period_n', 'INT(11) NULL'),
|
||||
];
|
||||
}
|
||||
|
||||
public function doUpdate(Updater $updater)
|
||||
{
|
||||
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user