1
0
قرینه از https://github.com/matomo-org/matomo.git synced 2025-08-21 22:47:43 +00:00
Files
matomo/core/Updates/5.3.0-b1.php
Stefan Giehl bcb3d49080 Start storing the processing host and process id for started invalidations (#22981)
* Start storing the processing host and process id for started invalidations

* remove unreachable code and add test

* unset host and id when releasing invalidations
2025-01-28 14:10:39 +01:00

43 خطوط
960 B
PHP

<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*/
namespace Piwik\Updates;
use Piwik\Updater;
use Piwik\Updater\Migration\Factory as MigrationFactory;
use Piwik\Updates;
class Updates_5_3_0_b1 extends Updates
{
/**
* @var MigrationFactory
*/
private $migration;
public function __construct(MigrationFactory $factory)
{
$this->migration = $factory;
}
public function getMigrations(Updater $updater)
{
return [
$this->migration->db->addColumns('archive_invalidations', [
'processing_host' => 'VARCHAR(100) NULL DEFAULT NULL',
'process_id' => 'VARCHAR(15) NULL DEFAULT NULL',
])
];
}
public function doUpdate(Updater $updater)
{
$updater->executeMigrations(__FILE__, $this->getMigrations($updater));
}
}