Summary
I set up a current.sql like this:
--!include schemas/private.sql
--!include schemas/public.sql
--!include functions/uid.sql
--!include tables/accounts.sql
--!include types/jwt_token.sql
--!include functions/authenticate.sql
I then tried running graphile-migrate compile and graphile-migrate run against it but the fixtures do not appear to be substituted in:
$ graphile-migrate --config src/db/.gmrc compile src/db/migrations/current.sql
--!include schemas/private.sql
--!include schemas/public.sql
--!include functions/uid.sql
--!include tables/accounts.sql
--!include types/jwt_token.sql
--!include functions/authenticate.sql
$ graphile-migrate --config src/db/.gmrc run src/db/migrations/current.sql
┌───┐
│ │
├───┤
└───┘
The fixtures are substituted in correctly when running graphile-migrate --config src/db/.gmrc commit
Steps to reproduce
See above
Expected results
The fixtures should be substituted in when using compile and run
Actual results
The fixtures are not substituted in when using compile and run
Additional context
OS: dockerized mcr.microsoft.com/devcontainers/base:bookworm running on ubuntu 20.0.4
graphile-migrate: 2.0.0-rc.2
bun: 1.1.13
Possible Solution
Support fixture substitution in compile and run
Summary
I set up a
current.sqllike this:I then tried running
graphile-migrate compileandgraphile-migrate runagainst it but the fixtures do not appear to be substituted in:The fixtures are substituted in correctly when running
graphile-migrate --config src/db/.gmrc commitSteps to reproduce
See above
Expected results
The fixtures should be substituted in when using
compileandrunActual results
The fixtures are not substituted in when using
compileandrunAdditional context
OS: dockerized
mcr.microsoft.com/devcontainers/base:bookwormrunning on ubuntu 20.0.4graphile-migrate:2.0.0-rc.2bun:1.1.13Possible Solution
Support fixture substitution in
compileandrun