You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you try to disband a team, it will first remove player record from db, and then try to delete team row, and get an error
Expected Behaviour
To delete team row
How to Reproduce
Create a team and disband it
Error message
Something went wrong while executing SQL
[10:58:49 ERROR]: SQL: DELETE FROM BetterTeams_Team WHERE teamID LIKE '08b0afc1-ead2-4580-bed4-eab7d2453e7f';
[10:58:49 WARN]: java.sql.SQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (minecraft.betterteams_players, CONSTRAINT betterteams_players_ibfk_1 FOREIGN KEY (teamID) REFERENCES BetterTeams_Team (teamID) ON DELETE CASCADE)
Output of /teama version
Метод хранения данных: com.booksaw.betterTeams.team.storage.storageManager.SQLStorageManager
Версия Minecraft: git-Purpur-2157 (MC: 1.20.4)
Выбранный язык: ru
Online mode: false
Player count: 1
Текущая версия плагина: 4.9.1
Additional Information
No response
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
stalebot
added
the
inactive
The issue has had no activity for 20 days, it will be closed in 10 days time
label
Jun 1, 2024
This issue is being closed for inactivity. If you are still having problems feel free to open a new issue linking this one, make sure you answer any questions asked in the new issue.
What is the bug?
When you try to disband a team, it will first remove player record from db, and then try to delete team row, and get an error
Expected Behaviour
To delete team row
How to Reproduce
Create a team and disband it
Error message
Something went wrong while executing SQL
[10:58:49 ERROR]: SQL: DELETE FROM BetterTeams_Team WHERE teamID LIKE '08b0afc1-ead2-4580-bed4-eab7d2453e7f';
[10:58:49 WARN]: java.sql.SQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (
minecraft
.betterteams_players
, CONSTRAINTbetterteams_players_ibfk_1
FOREIGN KEY (teamID
) REFERENCESBetterTeams_Team
(teamID
) ON DELETE CASCADE)Output of /teama version
Метод хранения данных: com.booksaw.betterTeams.team.storage.storageManager.SQLStorageManager
Версия Minecraft: git-Purpur-2157 (MC: 1.20.4)
Выбранный язык: ru
Online mode: false
Player count: 1
Текущая версия плагина: 4.9.1
Additional Information
No response
The text was updated successfully, but these errors were encountered: