X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;ds=sidebyside;f=app%2FDoctrineMigrations%2FVersion20200428072628.php;fp=app%2FDoctrineMigrations%2FVersion20200428072628.php;h=57fbebc23c5abff5c6c923348adb83549c8fb460;hb=9717d0129889ad73716be38766faede12adc333d;hp=0000000000000000000000000000000000000000;hpb=976b4bbb115e50feb71accc0e55f1129ac3557e5;p=github%2Fwallabag%2Fwallabag.git 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';"); + } +}