Work on cryptokeys
This commit is contained in:
parent
56a6e7145f
commit
87a802e210
12 changed files with 637 additions and 83 deletions
2
sql/0008.sql
Normal file
2
sql/0008.sql
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE public.node ADD crypto_key_id int4 NULL;
|
||||
ALTER TABLE public.node ADD CONSTRAINT crypto_key_fk FOREIGN KEY (crypto_key_id) REFERENCES public.crypto_key(id) ON DELETE RESTRICT ON UPDATE RESTRICT;
|
||||
1
sql/0009.sql
Normal file
1
sql/0009.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
CREATE SEQUENCE aes_ccm_counter AS int8 INCREMENT BY 1 NO CYCLE;
|
||||
1
sql/0010.sql
Normal file
1
sql/0010.sql
Normal file
|
|
@ -0,0 +1 @@
|
|||
ALTER TABLE public.crypto_key ADD CONSTRAINT crypto_user_description_un UNIQUE (user_id, description);
|
||||
Loading…
Add table
Add a link
Reference in a new issue