aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeremy Benoist <jeremy.benoist@gmail.com>2017-05-02 08:38:22 +0200
committerJeremy Benoist <jeremy.benoist@gmail.com>2017-06-20 16:03:20 +0200
commitfd7fde95159828960784a438c4b4da147e20ab18 (patch)
tree5b113a3eca7a3d194eee9b45a3017f62c7659c00
parentb8427f22f06cab58383ec3080f09715c712c65ef (diff)
downloadwallabag-fd7fde95159828960784a438c4b4da147e20ab18.tar.gz
wallabag-fd7fde95159828960784a438c4b4da147e20ab18.tar.zst
wallabag-fd7fde95159828960784a438c4b4da147e20ab18.zip
Force sequence creation for postgresql
-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 /**