- changed DB-oauth-unique constraint
This commit is contained in:
KRAIEM Taha Yassine 2021-05-21 19:02:14 +02:00
parent f0c1656173
commit d13bd0dee6
2 changed files with 2 additions and 2 deletions

View file

@ -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)
);

View file

@ -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 ---