aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20161122203647.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/DoctrineMigrations/Version20161122203647.php')
-rw-r--r--app/DoctrineMigrations/Version20161122203647.php5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/DoctrineMigrations/Version20161122203647.php b/app/DoctrineMigrations/Version20161122203647.php
index 9c1557eb..94197193 100644
--- a/app/DoctrineMigrations/Version20161122203647.php
+++ b/app/DoctrineMigrations/Version20161122203647.php
@@ -42,12 +42,9 @@ class Version20161122203647 extends AbstractMigration implements ContainerAwareI
42 { 42 {
43 $userTable = $schema->getTable($this->getTable('user')); 43 $userTable = $schema->getTable($this->getTable('user'));
44 44
45 $this->skipIf(false === $userTable->hasColumn('expired'), 'It seems that you already played this migration.'); 45 $this->skipIf(false === $userTable->hasColumn('expired') || false === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.');
46 46
47 $userTable->dropColumn('expired'); 47 $userTable->dropColumn('expired');
48
49 $this->skipIf(false === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.');
50
51 $userTable->dropColumn('credentials_expired'); 48 $userTable->dropColumn('credentials_expired');
52 } 49 }
53 50