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

hasura migrate does not error with an invalid migrations file #1224

@elgordino

Description

@elgordino

In some instances of an invalid migrations file hasura-cli does not error, rather it silently ignores the file.

Steps to repro.

Create migrations file 1.up.yaml with this content (with the invalid THIS IS A TEST)

THIS IS A TEST

-   args:
        sql: CREATE TABLE "public"."test"("id" uuid NOT NULL UNIQUE, PRIMARY KEY ("id") );
    type: run_sql
-   args:
        name: test
        schema: public
    type: add_existing_table_or_view

Run hasura migrate status

Output seen:

VERSION  SOURCE STATUS  DATABASE STATUS

Expected output: Some sort of error indicating there is an problem in 1.up.yaml

Metadata

Metadata

Assignees

Labels

c/cliRelated to CLI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions