aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20200428072628.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-30 09:14:52 +0200
committerGitHub <noreply@github.com>2020-04-30 09:14:52 +0200
commit557e810c1f2b2e662f163fc419014e80d5484e3a (patch)
tree58d033f3a8eefbeaa6a3732e2bf4eb7855cea336 /app/DoctrineMigrations/Version20200428072628.php
parent23ea2c8f74f662b851db8bab2046b82d13e2837b (diff)
parent9717d0129889ad73716be38766faede12adc333d (diff)
downloadwallabag-557e810c1f2b2e662f163fc419014e80d5484e3a.tar.gz
wallabag-557e810c1f2b2e662f163fc419014e80d5484e3a.tar.zst
wallabag-557e810c1f2b2e662f163fc419014e80d5484e3a.zip
Merge pull request #4363 from wallabag/piwik-to-matomo
Upgrade Piwik Twig Extension to Matomo
Diffstat (limited to 'app/DoctrineMigrations/Version20200428072628.php')
-rw-r--r--app/DoctrineMigrations/Version20200428072628.php28
1 files changed, 28 insertions, 0 deletions
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 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Application\Migrations;
6
7use Doctrine\DBAL\Schema\Schema;
8use Wallabag\CoreBundle\Doctrine\WallabagMigration;
9
10/**
11 * Renamed Piwik to Matomo in configuration.
12 */
13final class Version20200428072628 extends WallabagMigration
14{
15 public function up(Schema $schema): void
16 {
17 $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'matomo_enabled' where name = 'piwik_enabled';");
18 $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'matomo_host' where name = 'piwik_host';");
19 $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'matomo_site_id' where name = 'piwik_site_id';");
20 }
21
22 public function down(Schema $schema): void
23 {
24 $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'piwik_enabled' where name = 'matomo_enabled';");
25 $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'piwik_host' where name = 'matomo_host';");
26 $this->addSql('UPDATE ' . $this->getTable('internal_setting', true) . " SET name = 'piwik_site_id' where name = 'matomo_site_id';");
27 }
28}