2020-04-14 16:01:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Application\Migrations;
|
|
|
|
|
|
|
|
use Doctrine\DBAL\Schema\Schema;
|
2024-03-30 01:17:41 +01:00
|
|
|
use Doctrine\Migrations\Exception\SkipMigration;
|
2024-02-19 01:30:12 +01:00
|
|
|
use Wallabag\Doctrine\WallabagMigration;
|
2020-04-14 16:01:14 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Remove baggy theme.
|
|
|
|
*/
|
|
|
|
final class Version20200414120227 extends WallabagMigration
|
|
|
|
{
|
|
|
|
public function up(Schema $schema): void
|
|
|
|
{
|
|
|
|
$this->addSql('UPDATE ' . $this->getTable('config', true) . " SET theme = 'material';");
|
|
|
|
}
|
|
|
|
|
|
|
|
public function down(Schema $schema): void
|
|
|
|
{
|
2024-03-30 01:17:41 +01:00
|
|
|
throw new SkipMigration('Not possible ... ');
|
2020-04-14 16:01:14 +02:00
|
|
|
}
|
|
|
|
}
|