- $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');
}
@@ -57,7+54,10 @@ class Version20161122203647 extends AbstractMigration implements ContainerAwareI
+ $this->skipIf(true === $userTable->hasColumn('expired') || true === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.');