aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/DoctrineMigrations/Version20170405182620.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20170405182620.php b/app/DoctrineMigrations/Version20170405182620.php
index c1ae7df9..3ef9633f 100644
--- a/app/DoctrineMigrations/Version20170405182620.php
+++ b/app/DoctrineMigrations/Version20170405182620.php
@@ -40,6 +40,8 @@ class Version20170405182620 extends AbstractMigration implements ContainerAwareI
40 'notnull' => false, 40 'notnull' => false,
41 ]); 41 ]);
42 42
43 $this->skipIf($entryTable->hasColumn('published_by'), 'It seems that you already played this migration.');
44
43 $entryTable->addColumn('published_by', 'text', [ 45 $entryTable->addColumn('published_by', 'text', [
44 'notnull' => false, 46 'notnull' => false,
45 ]); 47 ]);
@@ -55,6 +57,9 @@ class Version20170405182620 extends AbstractMigration implements ContainerAwareI
55 $this->skipIf(!$entryTable->hasColumn('published_at'), 'It seems that you already played this migration.'); 57 $this->skipIf(!$entryTable->hasColumn('published_at'), 'It seems that you already played this migration.');
56 58
57 $entryTable->dropColumn('published_at'); 59 $entryTable->dropColumn('published_at');
60
61 $this->skipIf(!$entryTable->hasColumn('published_by'), 'It seems that you already played this migration.');
62
58 $entryTable->dropColumn('published_by'); 63 $entryTable->dropColumn('published_by');
59 } 64 }
60} 65}