这是indexloc提供的服务,不要输入任何密码
Skip to content

Add a flag to fail with error in hasura migrate apply with --all-databases #7499

@abdullah2993

Description

@abdullah2993

Instead of skipping and just displaying an error add a flag like --fail-on-error or --do-not-skip so the the command hasura migrate apply --all-databases exit with an error code this is specially helpful in CI/CD like in github actions where right now it shows all green even though a migration failed. The workaround could be to grep for error fail that way but would be nice to have it supported directly in the CLI.
Behavior should be exit 1 if migration fails for any of the databases

{"level":"error","msg":"skipping applying migrations for database default...

Metadata

Metadata

Assignees

Labels

c/cliRelated to CLIk/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions