-
Notifications
You must be signed in to change notification settings - Fork 826
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- shorten the index name. Similar name pattern then existing
- Loading branch information
Showing
3 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.../org/cloudfoundry/identity/uaa/db/hsqldb/V4_110__Add_ExternalKey_To_Identity_Provider.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- add column external_key for oauth2,oidc,saml2 IdPs | ||
ALTER TABLE identity_provider ADD COLUMN external_key CLOB DEFAULT NULL; | ||
CREATE UNIQUE INDEX identity_provider_ext_key_zid__idx on identity_provider (identity_zone_id,type,external_key); | ||
CREATE UNIQUE INDEX external_key_in_zone on identity_provider (identity_zone_id,type,external_key); |
2 changes: 1 addition & 1 deletion
2
...s/org/cloudfoundry/identity/uaa/db/mysql/V4_110__Add_ExternalKey_To_Identity_Provider.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- add column external_key for oauth2,oidc,saml2 IdPs | ||
ALTER TABLE identity_provider ADD COLUMN external_key TEXT DEFAULT NULL; | ||
CREATE UNIQUE INDEX identity_provider_ext_key_zid__idx on identity_provider (identity_zone_id(36),type(8),external_key(724)); | ||
CREATE UNIQUE INDEX external_key_in_zone on identity_provider (identity_zone_id(36),type(8),external_key(724)); |
2 changes: 1 addition & 1 deletion
2
.../cloudfoundry/identity/uaa/db/postgresql/V4_110__Add_ExternalKey_To_Identity_Provider.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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
-- add column external_key for oauth2,oidc,saml2 IdPs | ||
ALTER TABLE identity_provider ADD COLUMN external_key TEXT DEFAULT NULL; | ||
CREATE UNIQUE INDEX identity_provider_ext_key_zid__idx on identity_provider (identity_zone_id,type,external_key) WHERE external_key IS NOT NULL; | ||
CREATE UNIQUE INDEX external_key_in_zone on identity_provider (identity_zone_id,type,external_key) WHERE external_key IS NOT NULL; |