aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/DoctrineMigrations/Version20161024212538.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-28 10:55:39 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2016-10-28 10:55:39 +0200
commitf24ea59ea4e854d8a699f51a7347af9d4a222de8 (patch)
tree24fed3891e3e982222731b8b48b7abbc088a5fc9 /app/DoctrineMigrations/Version20161024212538.php
parent23406ca3f12303759ecb46974d6bcb22fb0e037b (diff)
downloadwallabag-f24ea59ea4e854d8a699f51a7347af9d4a222de8.tar.gz
wallabag-f24ea59ea4e854d8a699f51a7347af9d4a222de8.tar.zst
wallabag-f24ea59ea4e854d8a699f51a7347af9d4a222de8.zip
Fixed migration and added tests
Diffstat (limited to 'app/DoctrineMigrations/Version20161024212538.php')
-rw-r--r--app/DoctrineMigrations/Version20161024212538.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/DoctrineMigrations/Version20161024212538.php b/app/DoctrineMigrations/Version20161024212538.php
index 75973b33..b9dc500c 100644
--- a/app/DoctrineMigrations/Version20161024212538.php
+++ b/app/DoctrineMigrations/Version20161024212538.php
@@ -34,6 +34,7 @@ class Version20161024212538 extends AbstractMigration implements ContainerAwareI
34 { 34 {
35 $this->skipIf($this->connection->getDatabasePlatform()->getName() == 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.'); 35 $this->skipIf($this->connection->getDatabasePlatform()->getName() == 'sqlite', 'Migration can only be executed safely on \'mysql\' or \'postgresql\'.');
36 36
37 $this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' ADD `user_id` INT(11) DEFAULT NULL');
37 $this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' ADD CONSTRAINT FK_clients_user_clients FOREIGN KEY (user_id) REFERENCES '.$this->getTable('user').' (id) ON DELETE CASCADE'); 38 $this->addSql('ALTER TABLE '.$this->getTable('oauth2_clients').' ADD CONSTRAINT FK_clients_user_clients FOREIGN KEY (user_id) REFERENCES '.$this->getTable('user').' (id) ON DELETE CASCADE');
38 } 39 }
39 40