Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment failed because of migrations #713

Open
oknoorap opened this issue Sep 28, 2022 · 0 comments
Open

Deployment failed because of migrations #713

oknoorap opened this issue Sep 28, 2022 · 0 comments

Comments

@oknoorap
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant