Skip to content

Commit

Permalink
feat: Add env var to prevent dbmate from dumping the schema (#2947)
Browse files Browse the repository at this point in the history
# Summary
This PR adds an env var to hermit, `DBMATE_NO_DUMP_SCHEMA`, as a
catch-all way to prevent creation of `db/schema.sql`

# Rationale
ran `dbmate up` from the command-line and noticed the pesky
`db/schema.sql` crop up again because i forgot the `--no-dump-schema`
flag. Added the env var incase anyone else makes the same mistake.

<img width="997" alt="image"
src="https://github.com/user-attachments/assets/fc9b3e27-7b91-4f91-a15e-267ed8728859">
  • Loading branch information
mistermoe authored Oct 2, 2024
1 parent cca245e commit cdaa8e4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/hermit.hcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
env = {
"DBMATE_MIGRATIONS_DIR": "${HERMIT_ENV}/backend/controller/sql/schema",
"DBMATE_NO_DUMP_SCHEMA": "true",
"FTL_ENDPOINT": "http://localhost:8892",
"FTL_INIT_GO_REPLACE": "github.com/TBD54566975/ftl=${HERMIT_ENV}",
"FTL_SOURCE": "${HERMIT_ENV}",
Expand Down

0 comments on commit cdaa8e4

Please sign in to comment.