I can't drop a table,
It complains about a foreign key:
Code: Select all
DROP TABLE color;
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails
Code: Select all
SHOW CREATE TABLE color
-> ;
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Table | Create Table |
+-------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| fiber_color | CREATE TABLE `color` (
`id` int(11) NOT NULL,
`name_en` varchar(25) NOT NULL,
`name_nl` varchar(25) DEFAULT NULL,
`name_fr` varchar(25) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 |