From 65a8c6e135e75bbcb37c286ce26b686f5af409c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20L=C5=93uillet?= Date: Wed, 30 Nov 2016 11:27:07 +0100 Subject: Code review --- app/DoctrineMigrations/Version20161122203647.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'app/DoctrineMigrations/Version20161122203647.php') 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 { $userTable = $schema->getTable($this->getTable('user')); - $this->skipIf(false === $userTable->hasColumn('expired'), 'It seems that you already played this migration.'); + $this->skipIf(false === $userTable->hasColumn('expired') || false === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.'); $userTable->dropColumn('expired'); - - $this->skipIf(false === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.'); - $userTable->dropColumn('credentials_expired'); } -- cgit v1.2.3