Skip to content

Commit

Permalink
feat(pollux): add size and last used index to credential_status_lists…
Browse files Browse the repository at this point in the history
… table (#798)

Signed-off-by: Shota Jolbordi <[email protected]>
  • Loading branch information
shotexa committed Mar 18, 2024
1 parent bfc5419 commit 7fab857
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- Adding columns 'size' and 'last_used_index' to table 'credential_status_lists'
ALTER TABLE public.credential_status_lists
-- https://www.w3.org/TR/vc-status-list/#revocation-bitstring-length (minimum suggested bitstring length)
ADD COLUMN size INTEGER NOT NULL DEFAULT 131072,
ADD COLUMN last_used_index INTEGER NOT NULL DEFAULT 0;

-- Rename the column 'encoded_list' to 'status_list_jwt_credential'
ALTER TABLE public.credential_status_lists
RENAME COLUMN encoded_list TO status_list_jwt_credential;

-- Remove the column "proof"
ALTER TABLE public.credential_status_lists
DROP COLUMN proof

0 comments on commit 7fab857

Please sign in to comment.