Download core/Updates/0.7.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 839 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Updates/0.7.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/core/Updates/0.7.php
-
curl -L -o 0.7.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/core/Updates/0.7.php
839 Bytes
| /** | |
| * 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\Updates; | |
| use Piwik\Updater\Migration\Factory as MigrationFactory; | |
| class Updates_0_7 extends Updates | |
| { | |
| /** | |
| * @var MigrationFactory | |
| */ | |
| private $migration; | |
| public function __construct(MigrationFactory $factory) | |
| { | |
| $this->migration = $factory; | |
| } | |
| public function getMigrations(Updater $updater) | |
| { | |
| return array( | |
| $this->migration->db->changeColumnType('option', 'option_name', 'VARCHAR(255) NOT NULL'), | |
| ); | |
| } | |
| public function doUpdate(Updater $updater) | |
| { | |
| $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); | |
| } | |
| } | |