violation: 1452 Cannot add or update a child row: a foreign key constraint fails (blog.menus, CONSTRAINT menus_ibfk_1 FOREIGN KEY (parent_id) REFERENCES menus (id) ON DELETE CASCADE ON UPDATE CASCADE)
Foreign key constraint
you cannot delete a row when the key of that row is being referred in another table
Обсуждают сегодня