Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOSIP-16182 Composite unique key for ca cert store #667

Merged
merged 1 commit into from
Nov 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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