-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Maintained postgres DB migrations state
- due to issue #813 (with mysql) we have rolled back all DB related changes: 030302a 873bc6d 34afece which we previously released. - since theere is no issue with postgres, it safer to NOT remove the already-released DB migrations so that various consumers's postgres DB states do not diverge. So this commit brings back all those already-release postgres DB migration.
- Loading branch information
1 parent
34afece
commit d456ede
Showing
3 changed files
with
5 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
...pi/src/main/resources/db/migration/postgres/V60__add_lowercase_credential_name_column.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 credential | ||
ADD COLUMN name_lowercase VARCHAR(1024) GENERATED ALWAYS AS (lower(name)) STORED; |
2 changes: 2 additions & 0 deletions
2
...hub-api/src/main/resources/db/migration/postgres/V61__index_lowercase_credential_name.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 @@ | ||
CREATE INDEX CONCURRENTLY IF NOT EXISTS credential_name_lowercase | ||
ON credential(name_lowercase); |
1 change: 1 addition & 0 deletions
1
...edhub-api/src/main/resources/db/migration/postgres/V62__drop_index_secret_name_unique.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 @@ | ||
DROP INDEX CONCURRENTLY IF EXISTS secret_name_unique; |