Closed NickToony closed 9 years ago
This is caused by a constraint on the foreign key.
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (gameservers_serv.statistics, CONSTRAINTstatistics_game_id_foreignFOREIGN KEY (game_id) REFERENCESgames(id)) (SQL: delete fromgameswhereid= 1)
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (
.
, CONSTRAINT
FOREIGN KEY (
) REFERENCES
(
)) (SQL: delete from
where
= 1)
This issue was also present on statistics table.
This is caused by a constraint on the foreign key.
SQLSTATE[23000]: Integrity constraint violation: 1451 Cannot delete or update a parent row: a foreign key constraint fails (
gameservers_serv.
statistics, CONSTRAINT
statistics_game_id_foreignFOREIGN KEY (
game_id) REFERENCES
games(
id)) (SQL: delete from
gameswhere
id= 1)