Przy wykonywaniu polecenia
UPDATE `groups` SET `id` = '6' WHERE `groups`.`id` = 3
otrzymuję błąd:
#1451 - Cannot delete or update a parent row: a foreign key constraint fails (`agencja`.`group_permissions`, CONSTRAINT `group_permissions_ibfk_2` FOREIGN KEY (`group_id`) REFERENCES `groups` (`id`))
Moje relacje:
Co jest nie tak?