diff --git a/pollux/lib/sql-doobie/src/main/resources/sql/pollux/V16__revocation_status_lists_table_and_columns.sql b/pollux/lib/sql-doobie/src/main/resources/sql/pollux/V16__revocation_status_lists_table_and_columns.sql index eea248cc62..a1c4847351 100644 --- a/pollux/lib/sql-doobie/src/main/resources/sql/pollux/V16__revocation_status_lists_table_and_columns.sql +++ b/pollux/lib/sql-doobie/src/main/resources/sql/pollux/V16__revocation_status_lists_table_and_columns.sql @@ -16,12 +16,13 @@ CREATE TABLE public.credential_status_lists updated_at TIMESTAMP WITH TIME ZONE NOT NULL default now() ); -CREATE INDEX credential_status_lists_wallet_id_index ON public.credential_revocation_status_lists (wallet_id); +CREATE INDEX credential_status_lists_wallet_id_index ON public.credential_status_lists (wallet_id); + CREATE TABLE public.credentials_in_status_list ( id UUID PRIMARY KEY default gen_random_uuid(), - issue_credential_record_id UUID NOT NULL, + issue_credential_record_id VARCHAR(64) NOT NULL, credential_status_list_id UUID NOT NULL, status_list_index INTEGER NOT NULL, -- is revoked or suspended