Skip to content
Snippets Groups Projects
Verified Commit 64e9f377 authored by Dominik Frantisek Bucik's avatar Dominik Frantisek Bucik
Browse files

fix: :bug: Update DB scripts to contain all modifications

parent 9dd73389
No related branches found
No related tags found
1 merge request!381fix: 🐛 Fix cleanup savedUserAuth
......@@ -173,6 +173,9 @@ CREATE TABLE IF NOT EXISTS client_details (
code_challenge_method VARCHAR(256),
parent_client_id BIGINT DEFAULT NULL,
accepted_tos BOOLEAN DEFAULT false,
jurisdiction VARCHAR(256) DEFAULT NULL,
UNIQUE (client_id)
);
......@@ -289,7 +292,8 @@ CREATE TABLE IF NOT EXISTS device_code (
expiration TIMESTAMP NULL,
client_id VARCHAR(256),
approved BOOLEAN,
auth_holder_id BIGINT
auth_holder_id BIGINT,
recorded_error TEXT DEFAULT NULL
);
CREATE TABLE IF NOT EXISTS device_code_scope (
......@@ -303,6 +307,14 @@ CREATE TABLE IF NOT EXISTS device_code_request_parameter (
val VARCHAR(2048)
);
CREATE TABLE shedlock (
name VARCHAR(64) PRIMARY KEY,
lock_until TIMESTAMP(3) NULL,
locked_at TIMESTAMP(3) NULL,
locked_by VARCHAR(255)
);
alter table access_token
add constraint access_token_authentication_holder_id_fk
foreign key (auth_holder_id) references authentication_holder (id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment