aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20161122203647.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2017-01-23 14:16:00 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2017-01-23 14:16:00 +0100
commit4acbeb93717612f361627f7d4b946fcb4477823c (patch)
treecf5856dce4a254535a9ea862ca7b072fcf0424b9 /app/DoctrineMigrations/Version20161122203647.php
parentb87f1712336564ec14e37487f512568bc4d986f7 (diff)
downloadwallabag-4acbeb93717612f361627f7d4b946fcb4477823c.tar.gz
wallabag-4acbeb93717612f361627f7d4b946fcb4477823c.tar.zst
wallabag-4acbeb93717612f361627f7d4b946fcb4477823c.zip
Added hardcoded SQL for migration to 2.2
Diffstat (limited to 'app/DoctrineMigrations/Version20161122203647.php')
-rw-r--r--app/DoctrineMigrations/Version20161122203647.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/DoctrineMigrations/Version20161122203647.php b/app/DoctrineMigrations/Version20161122203647.php
index 94197193..9b17d6ef 100644
--- a/app/DoctrineMigrations/Version20161122203647.php
+++ b/app/DoctrineMigrations/Version20161122203647.php
@@ -54,7 +54,10 @@ class Version20161122203647 extends AbstractMigration implements ContainerAwareI
54 public function down(Schema $schema) 54 public function down(Schema $schema)
55 { 55 {
56 $userTable = $schema->getTable($this->getTable('user')); 56 $userTable = $schema->getTable($this->getTable('user'));
57 $userTable->addColumn('expired', 'smallint'); 57
58 $userTable->addColumn('credentials_expired', 'smallint'); 58 $this->skipIf(true === $userTable->hasColumn('expired') || true === $userTable->hasColumn('credentials_expired'), 'It seems that you already played this migration.');
59
60 $userTable->addColumn('expired', 'smallint', ['notnull' => false]);
61 $userTable->addColumn('credentials_expired', 'smallint', ['notnull' => false]);
59 } 62 }
60} 63}