aboutsummaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/DoctrineMigrations/Version20170501115751.php (renamed from app/DoctrineMigrations/Version20161204115751.php)7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/DoctrineMigrations/Version20161204115751.php b/app/DoctrineMigrations/Version20170501115751.php
index 97635fa7..846a87b5 100644
--- a/app/DoctrineMigrations/Version20161204115751.php
+++ b/app/DoctrineMigrations/Version20170501115751.php
@@ -10,7 +10,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
10/** 10/**
11 * Add site credential table to store username & password for some website (behind authentication or paywall) 11 * Add site credential table to store username & password for some website (behind authentication or paywall)
12 */ 12 */
13class Version20161204115751 extends AbstractMigration implements ContainerAwareInterface 13class Version20170501115751 extends AbstractMigration implements ContainerAwareInterface
14{ 14{
15 /** 15 /**
16 * @var ContainerInterface 16 * @var ContainerInterface
@@ -44,6 +44,11 @@ class Version20161204115751 extends AbstractMigration implements ContainerAwareI
44 $table->addIndex(['user_id'], 'idx_user'); 44 $table->addIndex(['user_id'], 'idx_user');
45 $table->setPrimaryKey(['id']); 45 $table->setPrimaryKey(['id']);
46 $table->addForeignKeyConstraint($this->getTable('user'), ['user_id'], ['id'], [], 'fk_user'); 46 $table->addForeignKeyConstraint($this->getTable('user'), ['user_id'], ['id'], [], 'fk_user');
47
48 if ('postgresql' === $this->connection->getDatabasePlatform()->getName()) {
49 $schema->dropSequence('site_credential_id_seq');
50 $schema->createSequence('site_credential_id_seq');
51 }
47 } 52 }
48 53
49 /** 54 /**