mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-29 08:00:06 +00:00
feat(db): print the Postgres side of a new migration with gen:pg-migration
The script builds a scratch database the way a boot does (the baseline, then the migrations after its cut) up to the target migration, compares it with the entities by PARITY-PG's rules and prints the remaining statements as the postgres member of engineDdl. The scratch database is always dropped.
This commit is contained in:
@@ -39,6 +39,7 @@
|
||||
"check:db-types": "node --import tsx scripts/generate-db-types.ts --check",
|
||||
"gen:pg-baseline": "node --import tsx scripts/generate-pg-baseline.ts",
|
||||
"check:pg-baseline": "node --import tsx scripts/generate-pg-baseline.ts --check",
|
||||
"gen:pg-migration": "node --import tsx scripts/generate-pg-migration.ts",
|
||||
"probe:pg": "node --import tsx scripts/pg-probe.ts",
|
||||
"format": "prettier --write \"src/**/*.ts\" \"tests/**/*.ts\"",
|
||||
"format:check": "prettier --check \"src/**/*.ts\" \"tests/**/*.ts\"",
|
||||
|
||||
Reference in New Issue
Block a user