-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
c/serverRelated to serverRelated to servere/easycan be wrapped up in a couple of dayscan be wrapped up in a couple of daysk/bugSomething isn't workingSomething isn't workingp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprints/wipStatus: This issue is a work in progressStatus: This issue is a work in progress
Description
Hi,
I'm currently writing custom migrations, and am generating permissions combinatorially to populate Hasura as manually doing them would take too long.
A problem I hit is this error:
FATA[0006] apply failed: [unexpected] postgres query error ($.args[184].args)
File: '1575004447175_generate_permissions/up.yaml'
{
"permission": {
"check": {},
"columns": "*"
},
"role": "supermanadmin.researcheradmin.user.useradmin",
"table": {
"name": "QuestionnaireQuestionOnQuestionnaireSubscale",
"schema": "public"
}
}
[42P07] FatalError: relation "supermanadmin.researcheradmin.user.useradmin__insert__public__Q" already exists
This appears to fail because it sees that another permission exists (although it's a different table - I have many tables starting with Q, it just happens to crop off at the same position).
I have a work-around which is, don't make the names of the tables and/or permissions that long, but it would be nice not to hit this in the future.
Cheers,
Patrick
Metadata
Metadata
Assignees
Labels
c/serverRelated to serverRelated to servere/easycan be wrapped up in a couple of dayscan be wrapped up in a couple of daysk/bugSomething isn't workingSomething isn't workingp/highcandidate for being included in the upcoming sprintcandidate for being included in the upcoming sprints/wipStatus: This issue is a work in progressStatus: This issue is a work in progress