-
Notifications
You must be signed in to change notification settings - Fork 191
Open
Description
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:
- Update columns / metadata / permissions
- Commit files and push to github
- 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
Labels
No labels