WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Deployment failed because of migrations #713

@oknoorap

Description

@oknoorap

Describe the bug
I did update on some relation and permission in Hasura (localhost) , but the deployments are failed

To Reproduce
Steps to reproduce the behavior:

  1. Update columns / metadata / permissions
  2. Commit files and push to github
  3. Deployment failed

Screenshots

11:59:09:
Applying database migrations
11:59:13:
Failed to apply migrations: {"level":"info","msg":"Help us improve Hasura! The cli collects anonymized usage stats which\nallow us to keep improving Hasura at warp speed. To opt-out or read more,\nvisit https://hasura.io/docs/latest/graphql/core/guides/telemetry.html\n","time":"2022-09-28T04:59:10Z"} {"level":"error","msg":"skipping applying migrations on database default, encountered: \n{\n \"code\": \"postgres-error\",\n \"error\": \"query execution failed\",\n \"internal\": {\n \"arguments\": [],\n \"error\": {\n \"description\": null,\n \"exec_status\": \"FatalError\",\n \"hint\": null,\n \"message\": \"relation \\\"projects\\\" already exists\",\n \"status_code\": \"42P07\"\n },\n \"prepared\": false,\n \"statement\": \"CREATE TABLE \\\"public\\\".\\\"projects\\\" (\\\"id\\\" uuid NOT NULL DEFAULT gen_random_uuid(), \\\"createdAt\\\" timestamptz NOT NULL DEFAULT now(), \\\"updatedAt\\\" timestamptz NOT NULL DEFAULT transaction_timestamp(), \\\"user\\\" uuid NOT NULL, \\\"name\\\" text NOT NULL, PRIMARY KEY (\\\"id\\\") , FOREIGN KEY (\\\"user\\\") REFERENCES \\\"auth\\\".\\\"users\\\"(\\\"id\\\") ON UPDATE restrict ON DELETE restrict, UNIQUE (\\\"user\\\"), UNIQUE (\\\"id\\\"));\\nCREATE EXTENSION IF NOT EXISTS pgcrypto;\\n\"\n },\n \"path\": \"$\"\n}","time":"2022-09-28T04:59:13Z"} time="2022-09-28T04:59:13Z" level=fatal msg="operation failed on : default"
11:59:13:
Deployment completed with status FAILED

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions