Fix broken tests

pull/1611/head
Enrico Vianello 2023-07-13 16:17:31 +02:00
parent 415cd2e41c
commit 00e6f87b65
2 changed files with 3 additions and 1 deletions

View File

@ -7,11 +7,12 @@ CREATE TABLE IF NOT EXISTS access_token (
token_value VARCHAR(4096),
expiration TIMESTAMP,
token_type VARCHAR(256),
token_value_hash CHAR(64),
refresh_token_id BIGINT,
client_id BIGINT,
auth_holder_id BIGINT,
approved_site_id BIGINT,
UNIQUE(token_value)
UNIQUE(token_value_hash)
);
CREATE TABLE IF NOT EXISTS access_token_permissions (

View File

@ -7,6 +7,7 @@ CREATE TABLE IF NOT EXISTS access_token (
token_value VARCHAR(4096),
expiration TIMESTAMP NULL,
token_type VARCHAR(256),
token_value_hash CHAR(64) AS (SHA2(token_value, 256)),
refresh_token_id BIGINT,
client_id BIGINT,
auth_holder_id BIGINT,