diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-30 11:27:07 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-30 11:27:07 +0100 |
commit | 65a8c6e135e75bbcb37c286ce26b686f5af409c7 (patch) | |
tree | 45d60c8767a6deb1621067c469dbfa0ad81937e0 /app/DoctrineMigrations/Version20161122203647.php | |
parent | d79b3adbed4c2c1fd8d35e9475af734d443b564a (diff) | |
download | wallabag-65a8c6e135e75bbcb37c286ce26b686f5af409c7.tar.gz wallabag-65a8c6e135e75bbcb37c286ce26b686f5af409c7.tar.zst wallabag-65a8c6e135e75bbcb37c286ce26b686f5af409c7.zip |
Code review
Diffstat (limited to 'app/DoctrineMigrations/Version20161122203647.php')
-rw-r--r-- | app/DoctrineMigrations/Version20161122203647.php | 5 |
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 | ||