-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'identity_zone_id' column to indexes for 'alias_zid' (#2942)
* Add Postgres DB migrations for removing old alias_zid indexes and adding new one on aliasZid and identity_zone_id * Add HSQL DB migrations for removing old alias_zid indexes and adding new one on aliasZid and identity_zone_id * Add MySQL DB migrations for removing old alias_zid indexes and adding new one on aliasZid and identity_zone_id * Rework * Refactorings - shorten the index name. similar name pattern then existing idexes - changed order of index. indentity_zone_id should be always first column - removed not null from SQL, since not needed, see https://stackoverflow.com/questions/8660203/how-to-check-for-is-not-null-and-is-not-empty-string-in-sql-server or https://stackoverflow.com/questions/1106258/mysql-null-vs --------- Co-authored-by: d036670 <markus.strehle@sap.com>
- Loading branch information
1 parent
1308dde
commit 0e522de
Showing
7 changed files
with
4 additions
and
7 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
2 changes: 0 additions & 2 deletions
2
...r/src/main/resources/org/cloudfoundry/identity/uaa/db/hsqldb/V4_109__AliasZid_Indexes.sql
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...in/resources/org/cloudfoundry/identity/uaa/db/hsqldb/V4_109__IdP_AliasZid_IdzId_Index.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 @@ | ||
CREATE INDEX IF NOT EXISTS alias_in_zone on identity_provider (identity_zone_id, alias_zid); |
2 changes: 0 additions & 2 deletions
2
...er/src/main/resources/org/cloudfoundry/identity/uaa/db/mysql/V4_109__AliasZid_Indexes.sql
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...ain/resources/org/cloudfoundry/identity/uaa/db/mysql/V4_109__IdP_AliasZid_IdzId_Index.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 @@ | ||
CREATE INDEX alias_in_zone on identity_provider (identity_zone_id, alias_zid) LOCK = SHARED; |
2 changes: 0 additions & 2 deletions
2
...c/main/resources/org/cloudfoundry/identity/uaa/db/postgresql/V4_109__AliasZid_Indexes.sql
This file was deleted.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...esources/org/cloudfoundry/identity/uaa/db/postgresql/V4_109__IdP_AliasZid_IdzId_Index.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 @@ | ||
CREATE INDEX CONCURRENTLY IF NOT EXISTS alias_in_zone on identity_provider (identity_zone_id, alias_zid) WHERE alias_zid IS NOT NULL; |