You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-- Merge the temporary clients safely into the database. This is a two-step process to keep clients from being created on every startup with a persistent store.
36
-
--
37
-
38
-
MERGE INTO client_details
39
-
USING (SELECT client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection FROM client_details_TEMP) AS vals(client_id, client_secret, client_name, dynamically_registered, refresh_token_validity_seconds, access_token_validity_seconds, id_token_validity_seconds, allow_introspection)
USING (SELECT id, redirect_uri FROM client_redirect_uri_TEMP, client_details WHEREclient_details.client_id=client_redirect_uri_TEMP.owner_id) AS vals(id, redirect_uri)
USING (SELECT id, grant_type FROM client_grant_type_TEMP, client_details WHEREclient_details.client_id=client_grant_type_TEMP.owner_id) AS vals(id, grant_type)
ON DUPLICATE KEY UPDATEclient_details.client_id=VALUES(client_id);
32
+
33
+
34
+
INSERT INTO client_scope (owner_id, scope) SELECT id , scope FROM client_scope_TEMP, client_details WHEREclient_details.client_id=client_scope_TEMP.owner_id
35
+
ON DUPLICATE KEY UPDATEclient_scope.owner_id=VALUES(owner_id) , client_scope.scope=VALUES(scope);
36
+
37
+
38
+
INSERT INTO client_redirect_uri (owner_id, redirect_uri) SELECT id, redirect_uri FROM client_redirect_uri_TEMP, client_details WHEREclient_details.client_id=client_redirect_uri_TEMP.owner_id
39
+
ON DUPLICATE KEY UPDATEclient_redirect_uri.owner_id=VALUES(owner_id) , client_redirect_uri.redirect_uri=VALUES(redirect_uri);
40
+
41
+
42
+
INSERT INTO client_grant_type (owner_id, grant_type) SELECT id, grant_type FROM client_grant_type_TEMP, client_details WHEREclient_details.client_id=client_grant_type_TEMP.owner_id
43
+
ON DUPLICATE KEY UPDATEclient_grant_type.owner_id=VALUES(owner_id) , client_grant_type.grant_type=VALUES(grant_type);
-- Merge the temporary scopes safely into the database. This is a two-step process to keep scopes from being created on every startup with a persistent store.
23
-
--
24
-
25
-
MERGE INTO system_scope
26
-
USING (SELECT scope, description, icon, restricted, default_scope, structured, structured_param_description FROM system_scope_TEMP) AS vals(scope, description, icon, restricted, default_scope, structured, structured_param_description)
0 commit comments