aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20200414120227.php
blob: 45e4c6375a0885b49211282afa5030355384ba42 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php

namespace Application\Migrations;

use Doctrine\DBAL\Migrations\SkipMigrationException;
use Doctrine\DBAL\Schema\Schema;
use Wallabag\CoreBundle\Doctrine\WallabagMigration;

/**
 * Remove baggy theme
 */
final class Version20200414120227 extends WallabagMigration
{
    public function up(Schema $schema) : void
    {
        $this->addSql('UPDATE ' . $this->getTable('config', true) . ' SET theme = "material" WHERE theme = "baggy";');
    }

    public function down(Schema $schema) : void
    {
        throw new SkipMigrationException('Not possible ... ');
    }
}