Skip to content

Commit

Permalink
Maintained postgres DB migrations state
Browse files Browse the repository at this point in the history
- 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
peterhaochen47 committed Nov 11, 2024
1 parent 34afece commit d456ede
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
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;
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);
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP INDEX CONCURRENTLY IF EXISTS secret_name_unique;

0 comments on commit d456ede

Please sign in to comment.