diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-14 16:01:14 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2020-04-14 16:01:14 +0200 |
commit | 39676caf83a3d85203a769295d65c8ce32953883 (patch) | |
tree | 1c98d8fdcdf8aa6941a21290bcbe883132ea891f /app/DoctrineMigrations | |
parent | 2b21cc8869c9a6cbcc14a10aa6f39a10c3b8c4a0 (diff) | |
download | wallabag-remove-baggy.tar.gz wallabag-remove-baggy.tar.zst wallabag-remove-baggy.zip |
Removed old, not so maintained and buggy baggy themeremove-baggy
Diffstat (limited to 'app/DoctrineMigrations')
-rw-r--r-- | app/DoctrineMigrations/Version20200414120227.php | 23 |
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 | |||
3 | namespace Application\Migrations; | ||
4 | |||
5 | use Doctrine\DBAL\Migrations\SkipMigrationException; | ||
6 | use Doctrine\DBAL\Schema\Schema; | ||
7 | use Wallabag\CoreBundle\Doctrine\WallabagMigration; | ||
8 | |||
9 | /** | ||
10 | * Remove baggy theme | ||
11 | */ | ||
12 | final 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 | } | ||