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

Can't delete teams with members #177

Closed
jenetlan opened this issue Jan 17, 2019 · 0 comments · Fixed by #243
Closed

Can't delete teams with members #177

jenetlan opened this issue Jan 17, 2019 · 0 comments · Fixed by #243
Assignees
Labels
bug Something isn't working recommended Good things to tackle right now
Milestone

Comments

@jenetlan
Copy link
Contributor

jenetlan commented Jan 17, 2019

When trying to delete a team with members, an exception occurs. This happens both for Admins and Users (authors don't have access to that capability).

Exception:
SqlException: The DELETE statement conflicted with the REFERENCE constraint "FK_TeamMembers_Teams_Team.ID". The conflict occurred in database "PuzzleServer", table "dbo.TeamMembers", column 'Team.ID'.
The statement has been terminated.
System.Data.SqlClient.SqlCommand+<>c.b__122_0(Task result)
DbUpdateException: An error occurred while updating the entries. See the inner exception for details.
Microsoft.EntityFrameworkCore.Update.ReaderModificationCommandBatch.ExecuteAsync(IRelationalConnection connection, CancellationToken cancellationToken)

@jenetlan jenetlan added the bug Something isn't working label Jan 17, 2019
@jenetlan jenetlan added this to the P0 milestone Jan 17, 2019
@jenetlan jenetlan added the recommended Good things to tackle right now label Jan 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working recommended Good things to tackle right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants