]>
Commit | Line | Data |
---|---|---|
39676caf NL |
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 | } |