aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-14 16:01:14 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2020-04-14 16:01:14 +0200
commit39676caf83a3d85203a769295d65c8ce32953883 (patch)
tree1c98d8fdcdf8aa6941a21290bcbe883132ea891f /app/DoctrineMigrations
parent2b21cc8869c9a6cbcc14a10aa6f39a10c3b8c4a0 (diff)
downloadwallabag-39676caf83a3d85203a769295d65c8ce32953883.tar.gz
wallabag-39676caf83a3d85203a769295d65c8ce32953883.tar.zst
wallabag-39676caf83a3d85203a769295d65c8ce32953883.zip
Removed old, not so maintained and buggy baggy themeremove-baggy
Diffstat (limited to 'app/DoctrineMigrations')
-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}