From feebc074b9dfee281e19542ceb1ea44f98168acf Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Mon, 5 Dec 2022 19:21:08 +0100 Subject: [PATCH] Shorten some constraint names in schema --- crates/storage/migrations/20221121151402_upstream_oauth.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/storage/migrations/20221121151402_upstream_oauth.sql b/crates/storage/migrations/20221121151402_upstream_oauth.sql index bebb0e86..86a117dd 100644 --- a/crates/storage/migrations/20221121151402_upstream_oauth.sql +++ b/crates/storage/migrations/20221121151402_upstream_oauth.sql @@ -40,7 +40,7 @@ CREATE TABLE "upstream_oauth_links" ( PRIMARY KEY, "upstream_oauth_provider_id" UUID NOT NULL - CONSTRAINT "upstream_oauth_links_upstream_oauth_provider_fkey" + CONSTRAINT "upstream_oauth_links_provider_fkey" REFERENCES "upstream_oauth_providers" ("upstream_oauth_provider_id"), -- The user is initially NULL when logging in the first time. @@ -64,12 +64,12 @@ CREATE TABLE "upstream_oauth_authorization_sessions" ( PRIMARY KEY, "upstream_oauth_provider_id" UUID NOT NULL - CONSTRAINT "upstream_oauth_authorization_sessions_upstream_oauth_provider_fkey" + CONSTRAINT "upstream_oauth_authorization_sessions_provider_fkey" REFERENCES "upstream_oauth_providers" ("upstream_oauth_provider_id"), -- The link it resolves to at the end of the authorization grant "upstream_oauth_link_id" UUID - CONSTRAINT "upstream_oauth_authorization_sessions_upstream_oauth_link_fkey" + CONSTRAINT "upstream_oauth_authorization_sessions_link_fkey" REFERENCES "upstream_oauth_links" ("upstream_oauth_link_id"), -- The ID token we got at the end of the authorization grant