Fix broken tests
parent
415cd2e41c
commit
00e6f87b65
|
@ -7,11 +7,12 @@ CREATE TABLE IF NOT EXISTS access_token (
|
||||||
token_value VARCHAR(4096),
|
token_value VARCHAR(4096),
|
||||||
expiration TIMESTAMP,
|
expiration TIMESTAMP,
|
||||||
token_type VARCHAR(256),
|
token_type VARCHAR(256),
|
||||||
|
token_value_hash CHAR(64),
|
||||||
refresh_token_id BIGINT,
|
refresh_token_id BIGINT,
|
||||||
client_id BIGINT,
|
client_id BIGINT,
|
||||||
auth_holder_id BIGINT,
|
auth_holder_id BIGINT,
|
||||||
approved_site_id BIGINT,
|
approved_site_id BIGINT,
|
||||||
UNIQUE(token_value)
|
UNIQUE(token_value_hash)
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS access_token_permissions (
|
CREATE TABLE IF NOT EXISTS access_token_permissions (
|
||||||
|
|
|
@ -7,6 +7,7 @@ CREATE TABLE IF NOT EXISTS access_token (
|
||||||
token_value VARCHAR(4096),
|
token_value VARCHAR(4096),
|
||||||
expiration TIMESTAMP NULL,
|
expiration TIMESTAMP NULL,
|
||||||
token_type VARCHAR(256),
|
token_type VARCHAR(256),
|
||||||
|
token_value_hash CHAR(64) AS (SHA2(token_value, 256)),
|
||||||
refresh_token_id BIGINT,
|
refresh_token_id BIGINT,
|
||||||
client_id BIGINT,
|
client_id BIGINT,
|
||||||
auth_holder_id BIGINT,
|
auth_holder_id BIGINT,
|
||||||
|
|
Loading…
Reference in New Issue