From 9717d0129889ad73716be38766faede12adc333d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Tue, 28 Apr 2020 09:02:39 +0200 Subject: Upgrade Piwik Twig Extension to Matomo --- app/DoctrineMigrations/Version20200428072628.php | 28 ++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 app/DoctrineMigrations/Version20200428072628.php (limited to 'app/DoctrineMigrations/Version20200428072628.php') diff --git a/app/DoctrineMigrations/Version20200428072628.php b/app/DoctrineMigrations/Version20200428072628.php new file mode 100644 index 00000000..57fbebc2 --- /dev/null +++ b/app/DoctrineMigrations/Version20200428072628.php @@ -0,0 +1,28 @@ +addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'matomo_enabled' where name = 'piwik_enabled';"); + $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'matomo_host' where name = 'piwik_host';"); + $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'matomo_site_id' where name = 'piwik_site_id';"); + } + + public function down(Schema $schema): void + { + $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'piwik_enabled' where name = 'matomo_enabled';"); + $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'piwik_host' where name = 'matomo_host';"); + $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'piwik_site_id' where name = 'matomo_site_id';"); + } +} -- cgit v1.2.3