aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-04-10 09:26:08 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-04-10 09:26:08 +0200
commit3aa655e44a1a41296454d146aa948f2889904f81 (patch)
treecb978bc9c5d65214e7aeff1a0940f35d846402b1 /app/DoctrineMigrations
parent7b0b3622ab2dd909028481b294c91f88a5682671 (diff)
downloadwallabag-3aa655e44a1a41296454d146aa948f2889904f81.tar.gz
wallabag-3aa655e44a1a41296454d146aa948f2889904f81.tar.zst
wallabag-3aa655e44a1a41296454d146aa948f2889904f81.zip
Fixed migrations
Diffstat (limited to 'app/DoctrineMigrations')
-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}