Skip to content

Commit

Permalink
MOSIP-16182 Composite unique key for ca cert store (#667)
Browse files Browse the repository at this point in the history
  • Loading branch information
rambhatt1591 authored Nov 24, 2021
1 parent 571fd64 commit fc92289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ CREATE INDEX ind_uhs_id ON ida.uin_hash_salt (id);

-----------------------------------------------------------------------------------------------------------
ALTER TABLE ida.key_alias ADD COLUMN cert_thumbprint character varying(100);
ALTER TABLE ida.ca_cert_store ADD CONSTRAINT cert_thumbprint_unique UNIQUE (cert_thumbprint);
ALTER TABLE ida.ca_cert_store ADD CONSTRAINT cert_thumbprint_unique UNIQUE (cert_thumbprint,partner_domain);



2 changes: 1 addition & 1 deletion db_scripts/mosip_ida/ddl/ida-ca_cert_store.sql
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ CREATE TABLE ida.ca_cert_store(
is_deleted boolean DEFAULT FALSE,
del_dtimes timestamp,
CONSTRAINT pk_cacs_id PRIMARY KEY (cert_id),
CONSTRAINT cert_thumbprint_unique UNIQUE (cert_thumbprint)
CONSTRAINT cert_thumbprint_unique UNIQUE (cert_thumbprint,partner_domain)

);
-- ddl-end --
Expand Down

0 comments on commit fc92289

Please sign in to comment.