diff --git a/backend/controller/sql/schema/001_init.sql b/backend/controller/sql/schema/20231103205514_init.sql similarity index 98% rename from backend/controller/sql/schema/001_init.sql rename to backend/controller/sql/schema/20231103205514_init.sql index fb5c20462c..68b34021b2 100644 --- a/backend/controller/sql/schema/001_init.sql +++ b/backend/controller/sql/schema/20231103205514_init.sql @@ -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 diff --git a/backend/controller/sql/schema/20240704103403_create_module_secrets.sql b/backend/controller/sql/schema/20240704103403_create_module_secrets.sql new file mode 100644 index 0000000000..ce861ed185 --- /dev/null +++ b/backend/controller/sql/schema/20240704103403_create_module_secrets.sql @@ -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 diff --git a/bin/hermit.hcl b/bin/hermit.hcl index 64e90f9240..02334feb23 100644 --- a/bin/hermit.hcl +++ b/bin/hermit.hcl @@ -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"]