-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Shota Jolbordi <[email protected]>
- Loading branch information
Shota Jolbordi
committed
Nov 8, 2023
1 parent
06d1732
commit da249bb
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ megalinter-reports/ | |
.vscode | ||
.bloop | ||
.bsp | ||
.jvmops | ||
.jvmopts | ||
.metals | ||
**/project/metals.sbt | ||
target | ||
|
17 changes: 17 additions & 0 deletions
17
...l-doobie/src/main/resources/sql/pollux/V16__revocation_status_lists_table_and_columns.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
CREATE TABLE public.credential_revocation_status_lists | ||
( | ||
id UUID PRIMARY KEY default gen_random_uuid(), | ||
wallet_id UUID NOT NULL, | ||
status_list_credential JSON NOT NULL, | ||
created_at TIMESTAMP WITH TIME ZONE NOT NULL default now(), | ||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL default now() | ||
); | ||
CREATE INDEX credential_revocation_status_lists_wallet_id_index ON public.credential_revocation_status_lists (wallet_id); | ||
|
||
|
||
ALTER TABLE public.issue_credential_records | ||
ADD COLUMN revocation_status_list_id UUID default NULL, | ||
ADD CONSTRAINT revocation_status_list_id_fkey FOREIGN KEY (revocation_status_list_id) REFERENCES public.credential_revocation_status_lists (id) ON DELETE CASCADE ON UPDATE CASCADE, | ||
ADD COLUMN status_list_index INTEGER default NULL, | ||
ADD COLUMN revoked BOOLEAN default NULL; | ||
|