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

Hasura is creating migrations even when operation fails #4312

@leonardoarroyo

Description

@leonardoarroyo

It seems most, if not all, operations inside hasura console generate migrations even if the operation fails. Examples:

  • Inserting data with invalid query and ticking migration box
  • Attempting to set a table as enum without rows
  • Modifying an action with invalid action definition

All of these actions fail to succeed on hasura console, but the console still creates migration files for them.
This problem keep migrations inconsistent with DB state, and very often leads to failure when applying migrations on another computer.

Is this the intended behaviour or is it a bug? I believe a more correct approach would be only to generate migrations for operations that succeed.

Metadata

Metadata

Assignees

Labels

c/cliRelated to CLIk/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions