From d13bd0dee62cc0f4ed15d0b3de5bcc6e0ba0e4c9 Mon Sep 17 00:00:00 2001 From: KRAIEM Taha Yassine Date: Fri, 21 May 2021 19:02:14 +0200 Subject: [PATCH] Changes: - changed DB-oauth-unique constraint --- ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql | 2 +- scripts/helm/db/init_dbs/postgresql/init_schema.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql b/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql index eed909d99..e880024d3 100644 --- a/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql +++ b/ee/scripts/helm/db/init_dbs/postgresql/init_schema.sql @@ -141,7 +141,7 @@ CREATE TABLE oauth_authentication provider oauth_provider NOT NULL, provider_user_id text NOT NULL, token text NOT NULL, - UNIQUE (provider, provider_user_id) + UNIQUE (user_id, provider) ); diff --git a/scripts/helm/db/init_dbs/postgresql/init_schema.sql b/scripts/helm/db/init_dbs/postgresql/init_schema.sql index 97f31d869..83afd3ba0 100644 --- a/scripts/helm/db/init_dbs/postgresql/init_schema.sql +++ b/scripts/helm/db/init_dbs/postgresql/init_schema.sql @@ -138,7 +138,7 @@ CREATE TABLE oauth_authentication provider oauth_provider NOT NULL, provider_user_id text NOT NULL, token text NOT NULL, - UNIQUE (provider, provider_user_id) + UNIQUE (user_id, provider) ); -- --- projects.sql ---