diff options
Diffstat (limited to 'app/DoctrineMigrations/Version20161128084725.php')
-rw-r--r-- | app/DoctrineMigrations/Version20161128084725.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/DoctrineMigrations/Version20161128084725.php b/app/DoctrineMigrations/Version20161128084725.php index 347a4256..242d5900 100644 --- a/app/DoctrineMigrations/Version20161128084725.php +++ b/app/DoctrineMigrations/Version20161128084725.php | |||
@@ -8,7 +8,7 @@ use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |||
8 | use Symfony\Component\DependencyInjection\ContainerInterface; | 8 | use Symfony\Component\DependencyInjection\ContainerInterface; |
9 | 9 | ||
10 | /** | 10 | /** |
11 | * Added view_mode in user config. | 11 | * Added list_mode in user config. |
12 | */ | 12 | */ |
13 | class Version20161128084725 extends AbstractMigration implements ContainerAwareInterface | 13 | class Version20161128084725 extends AbstractMigration implements ContainerAwareInterface |
14 | { | 14 | { |
@@ -33,9 +33,9 @@ class Version20161128084725 extends AbstractMigration implements ContainerAwareI | |||
33 | public function up(Schema $schema) | 33 | public function up(Schema $schema) |
34 | { | 34 | { |
35 | $configTable = $schema->getTable($this->getTable('config')); | 35 | $configTable = $schema->getTable($this->getTable('config')); |
36 | $this->skipIf($configTable->hasColumn('view_mode'), 'It seems that you already played this migration.'); | 36 | $this->skipIf($configTable->hasColumn('list_mode'), 'It seems that you already played this migration.'); |
37 | 37 | ||
38 | $configTable->addColumn('view_mode', 'integer'); | 38 | $configTable->addColumn('list_mode', 'integer'); |
39 | } | 39 | } |
40 | 40 | ||
41 | /** | 41 | /** |
@@ -44,6 +44,6 @@ class Version20161128084725 extends AbstractMigration implements ContainerAwareI | |||
44 | public function down(Schema $schema) | 44 | public function down(Schema $schema) |
45 | { | 45 | { |
46 | $configTable = $schema->getTable($this->getTable('config')); | 46 | $configTable = $schema->getTable($this->getTable('config')); |
47 | $configTable->dropColumn('view_mode'); | 47 | $configTable->dropColumn('list_mode'); |
48 | } | 48 | } |
49 | } | 49 | } |