-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delete UNIQUE constraint on subject_dn column of iam_x509_cert table (#…
…672) and replace it with a common index
- Loading branch information
Showing
5 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
iam-persistence/src/main/resources/db/migration/h2/V97__delete_unique_subject_dn.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
ALTER TABLE iam_x509_cert DROP CONSTRAINT CONSTRAINT_32; | ||
CREATE INDEX idx_subject_dn ON iam_x509_cert(subject_dn); |
4 changes: 4 additions & 0 deletions
4
iam-persistence/src/main/resources/db/migration/mysql/V97__delete_unique_subject_dn.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Drop unique constraint on subject dn | ||
ALTER TABLE iam_x509_cert DROP INDEX subject_dn; | ||
-- Add index on subject_dn | ||
ALTER TABLE iam_x509_cert ADD INDEX idx_subject_dn (subject_dn); |