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

Generic error when modifying database schema #3314

@dvekeman

Description

@dvekeman

I have a Postgresql database on Amazon RDS and Hasura running on docker (latest version v1.0.0-beta.9).

After applying a - rather intrusive - change to one of my tables(*) I can no longer make any modifications.

When I hit 'Data' > <table> I can still query, insert, change permissions but when I hit the 'Modify' tab I get

Error

Something went wrong. Head back Home.

keys@[native code]
n@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/main.js.gz:1:3386808
n@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/main.js.gz:1:629172
Ha@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2639864
fs@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2665502
ds@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2665892
Zs@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2673068
Ys@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2672436
nl@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2673824
Pr@https://graphql-engine-cdn.hasura.io/console/assets/channel/beta/v1.0/vendor.js.gz:1:2604215
Pr@[native code]

(*) the change I made - through the Hasura console - was not a regular change but I altered the primary key.
Originally the pk was an integer in an 'id' column. I added a new 'reference' column with a UUID, changed it to become the pk and then removed the original id column.
This 'person' table was also the table I used for row select filtering (person.external_id == X-Hasura-User-Id). So probably this was a bit too much and something broke. I tried to enable more logging but I guess it's something in the internal logs...?

Metadata

Metadata

Assignees

No one assigned

    Labels

    c/consoleRelated to consolep/urgentImmediate action required

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions