Skip to content

Commit

Permalink
fix: split migrations since 0.268.3 out into separate files (#1975)
Browse files Browse the repository at this point in the history
Use `dbmate new <name>` to create a new migration file.
  • Loading branch information
alecthomas authored Jul 4, 2024
1 parent 0a69db1 commit 27a844d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -518,14 +518,4 @@ CREATE TABLE module_configuration
UNIQUE (module, name)
);

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
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
4 changes: 2 additions & 2 deletions bin/hermit.hcl
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"]

0 comments on commit 27a844d

Please sign in to comment.