From 7ffb17599a90fc6b2159a03684ada2d475c5940d Mon Sep 17 00:00:00 2001 From: Roman Strobl Date: Tue, 28 Nov 2023 17:52:49 +0100 Subject: [PATCH] Fix #1489: Update migration guide for Postgres for OAuth 2.1 migration --- docs/Web-Flow-1.5.0.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Web-Flow-1.5.0.md b/docs/Web-Flow-1.5.0.md index ad2960c2f..5521781b7 100644 --- a/docs/Web-Flow-1.5.0.md +++ b/docs/Web-Flow-1.5.0.md @@ -173,6 +173,8 @@ CREATE TABLE oauth2_registered_client ( PRIMARY KEY (id) ); +CREATE UNIQUE INDEX client_id_unique ON oauth2_registered_client (client_id); + -- Table oauth2_registered_client stores information about OAuth 2.1 consents -- Source: https://github.com/spring-projects/spring-authorization-server/blob/main/oauth2-authorization-server/src/main/resources/org/springframework/security/oauth2/server/authorization/oauth2-authorization-consent-schema.sql CREATE TABLE oauth2_authorization_consent (