]> git.immae.eu Git - github/wallabag/wallabag.git/blame - app/DoctrineMigrations/Version20200414120227.php
Removed old, not so maintained and buggy baggy theme
[github/wallabag/wallabag.git] / app / DoctrineMigrations / Version20200414120227.php
CommitLineData
39676caf
NL
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}