aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20200414120227.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/DoctrineMigrations/Version20200414120227.php')
-rw-r--r--app/DoctrineMigrations/Version20200414120227.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20200414120227.php b/app/DoctrineMigrations/Version20200414120227.php
new file mode 100644
index 00000000..45e4c637
--- /dev/null
+++ b/app/DoctrineMigrations/Version20200414120227.php
@@ -0,0 +1,23 @@
1<?php
2
3namespace Application\Migrations;
4
5use Doctrine\DBAL\Migrations\SkipMigrationException;
6use Doctrine\DBAL\Schema\Schema;
7use Wallabag\CoreBundle\Doctrine\WallabagMigration;
8
9/**
10 * Remove baggy theme
11 */
12final class Version20200414120227 extends WallabagMigration
13{
14 public function up(Schema $schema) : void
15 {
16 $this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET theme = "material" WHERE theme = "baggy";');
17 }
18
19 public function down(Schema $schema) : void
20 {
21 throw new SkipMigrationException('Not possible ... ');
22 }
23}