Skip to content

Commit 84b595e

Browse files
lomorijricher
authored andcommitted
Synch with HSQLDB version
Few fields were missing, e.g. user_info::src, causing an application crash with MySQL.
1 parent bf295b4 commit 84b595e

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

openid-connect-server-webapp/src/main/resources/db/tables/mysql_database_tables.sql

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ CREATE TABLE IF NOT EXISTS authentication_holder (
4949
user_auth_id BIGINT,
5050
approved BOOLEAN,
5151
redirect_uri VARCHAR(2048),
52-
client_id VARCHAR(256),
53-
52+
client_id VARCHAR(256)
5453
);
5554

5655
CREATE TABLE IF NOT EXISTS authentication_holder_authority (
@@ -126,12 +125,12 @@ CREATE TABLE IF NOT EXISTS blacklisted_site (
126125

127126
CREATE TABLE IF NOT EXISTS client_details (
128127
id BIGINT AUTO_INCREMENT PRIMARY KEY,
129-
128+
130129
client_description VARCHAR(1024),
131-
reuse_refresh_tokens BOOLEAN NOT NULL DEFAULT 1,
132-
dynamically_registered BOOLEAN NOT NULL DEFAULT 0,
133-
allow_introspection BOOLEAN NOT NULL DEFAULT 0,
134-
id_token_validity_seconds BIGINT NOT NULL DEFAULT 600,
130+
reuse_refresh_tokens BOOLEAN DEFAULT true NOT NULL,
131+
dynamically_registered BOOLEAN DEFAULT false NOT NULL,
132+
allow_introspection BOOLEAN DEFAULT false NOT NULL,
133+
id_token_validity_seconds BIGINT DEFAULT 600 NOT NULL,
135134

136135
client_id VARCHAR(256),
137136
client_secret VARCHAR(2048),
@@ -149,6 +148,7 @@ CREATE TABLE IF NOT EXISTS client_details (
149148
tos_uri VARCHAR(2048),
150149

151150
jwks_uri VARCHAR(2048),
151+
jwks VARCHAR(8192),
152152
sector_identifier_uri VARCHAR(2048),
153153

154154
request_object_signing_alg VARCHAR(256),
@@ -168,7 +168,7 @@ CREATE TABLE IF NOT EXISTS client_details (
168168
created_at TIMESTAMP NULL,
169169
initiate_login_uri VARCHAR(2048),
170170
post_logout_redirect_uri VARCHAR(2048),
171-
unique(client_id)
171+
UNIQUE (client_id)
172172
);
173173

174174
CREATE TABLE IF NOT EXISTS client_request_uri (
@@ -224,11 +224,11 @@ CREATE TABLE IF NOT EXISTS system_scope (
224224
scope VARCHAR(256) NOT NULL,
225225
description VARCHAR(4096),
226226
icon VARCHAR(256),
227-
restricted BOOLEAN NOT NULL DEFAULT 0,
228-
default_scope BOOLEAN NOT NULL DEFAULT 0,
229-
structured BOOLEAN NOT NULL DEFAULT 0,
227+
restricted BOOLEAN DEFAULT false NOT NULL,
228+
default_scope BOOLEAN DEFAULT false NOT NULL,
229+
structured BOOLEAN DEFAULT false NOT NULL,
230230
structured_param_description VARCHAR(256),
231-
unique(scope)
231+
UNIQUE (scope)
232232
);
233233

234234
CREATE TABLE IF NOT EXISTS user_info (
@@ -252,7 +252,8 @@ CREATE TABLE IF NOT EXISTS user_info (
252252
phone_number_verified BOOLEAN,
253253
address_id VARCHAR(256),
254254
updated_time VARCHAR(256),
255-
birthdate VARCHAR(256)
255+
birthdate VARCHAR(256),
256+
src VARCHAR(4096)
256257
);
257258

258259
CREATE TABLE IF NOT EXISTS whitelisted_site (

0 commit comments

Comments
 (0)