Skip to content

Commit

Permalink
Add migration
Browse files Browse the repository at this point in the history
Signed-off-by: Shota Jolbordi <[email protected]>
  • Loading branch information
Shota Jolbordi committed Nov 8, 2023
1 parent 06d1732 commit da249bb
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ megalinter-reports/
.vscode
.bloop
.bsp
.jvmops
.jvmopts
.metals
**/project/metals.sbt
target
Expand Down
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;

0 comments on commit da249bb

Please sign in to comment.