generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: split migrations since 0.268.3 out into separate files (#1975)
Use `dbmate new <name>` to create a new migration file.
- Loading branch information
1 parent
0a69db1
commit 27a844d
Showing
3 changed files
with
15 additions
and
12 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
13 changes: 13 additions & 0 deletions
13
backend/controller/sql/schema/20240704103403_create_module_secrets.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,13 @@ | ||
-- migrate:up | ||
|
||
CREATE TABLE module_secrets | ||
( | ||
id BIGINT NOT NULL GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, | ||
created_at TIMESTAMPTZ NOT NULL DEFAULT (NOW() AT TIME ZONE 'utc'), | ||
module TEXT, -- If NULL, configuration is global. | ||
name TEXT NOT NULL, | ||
url TEXT NOT NULL, | ||
UNIQUE (module, name) | ||
); | ||
|
||
-- migrate:down |
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,9 +1,9 @@ | ||
env = { | ||
"DBMATE_MIGRATIONS_DIR": "${HERMIT_ENV}/backend/controller/sql/schema", | ||
"FTL_ENDPOINT": "http://localhost:8892", | ||
"FTL_INIT_GO_REPLACE": "github.com/TBD54566975/ftl=${HERMIT_ENV}", | ||
"FTL_SOURCE": "${HERMIT_ENV}", | ||
"OTEL_METRIC_EXPORT_INTERVAL": "5000", | ||
"PATH": "${HERMIT_ENV}/scripts:${HERMIT_ENV}/frontend/node_modules/.bin:${HERMIT_ENV}/extensions/vscode/node_modules/.bin:${PATH}", | ||
"FTL_INIT_GO_REPLACE": "github.com/TBD54566975/ftl=${HERMIT_ENV}", | ||
|
||
} | ||
sources = ["env:///bin/packages", "https://github.com/cashapp/hermit-packages.git"] |