3 namespace Application\Migrations
;
5 use Doctrine\DBAL\Schema\Schema
;
6 use Wallabag\CoreBundle\Doctrine\WallabagMigration
;
9 * Added list_mode in user config.
11 class Version20161128084725
extends WallabagMigration
13 public function up(Schema
$schema)
15 $configTable = $schema->getTable($this->getTable('config'));
16 $this->skipIf($configTable->hasColumn('list_mode'), 'It seems that you already played this migration.');
18 $configTable->addColumn('list_mode', 'integer', ['notnull' => false]);
21 public function down(Schema
$schema)
23 $configTable = $schema->getTable($this->getTable('config'));
24 $configTable->dropColumn('list_mode');