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