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

Cannot delete groups with at least one member in them #313

Closed
geisterfurz007 opened this issue Jun 25, 2021 · 2 comments · Fixed by #352
Closed

Cannot delete groups with at least one member in them #313

geisterfurz007 opened this issue Jun 25, 2021 · 2 comments · Fixed by #352
Assignees

Comments

@geisterfurz007
Copy link
Member

I think eventually this will have to be solved in database but can sit here for now.

To reproduce send the following messages in either bot-commands or permanent-testing:

!group create test
!group join test
!group delete test

This will throw a prisma error.

Once you leave the group, you can delete it.

This should be fixed.

@adrian-goe
Copy link
Member

this prisma/prisma#2810 will solved the issue with the group. its planned for 2.26 (current is 2.25)
Problem is, that the join table UserGroupMembersGroupMember still has the foreign key to the UserGroup.
We can fix this manually by deleting all entries to the group in UserGroupMembersGroupMember before deleting it form UserGroup or wait, until the cascade feature comes. Probably next Tuesday

@adrian-goe adrian-goe self-assigned this Jul 3, 2021
@adrian-goe
Copy link
Member

Resolved with #352

@adrian-goe adrian-goe linked a pull request Jul 4, 2021 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants