graphql-engine icon indicating copy to clipboard operation
graphql-engine copied to clipboard

Show applied migrations in CLI image (like hasura-cli does)

Open jflambert opened this issue 1 year ago • 1 comments

Is your proposal related to a problem?

with debug log level, hasura-cli shows which migrations are applied. but the docker-cli image doesn't.

Here's hasura-cli migrate apply --skip-update-check --project hasura --log-level DEBUG

image

And here's the only information provided by hasura/graphql-engine:v2.9.0.cli-migrations-v2 image with HASURA_GRAPHQL_LOG_LEVEL: debug

{"timestamp":"2022-08-05T12:31:23.000+0000","level":"info","type":"startup","detail":{"kind":"migrations-apply","info":"applying migrations from /hasura/migrations"}}

Describe the solution you'd like

I would like the same debug lines to be present, one for each migration applied.

Describe alternatives you've considered

There are none.

If the feature is approved, would you be willing to submit a PR?

doubtful

jflambert avatar Aug 05 '22 12:08 jflambert

Please?

This would tremendously help us troubleshoot migration failures...

jflambert avatar Oct 12 '22 16:10 jflambert