In DB i have only one table:
navigation (InnoDB)
Is it possible configure this table to: If i delete where id == 1, all id 1 (Root Item) subs will be deleted automatically?
UPDATE
I try to recreate table:
CREATE TABLE `navigation` (
`id` int(10) unsigned NOT NULL auto_increment,
`name` VARCHAR(32),
`url` VARCHAR(32),
`position` int(10),
`parent_id` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`),
KEY `type` (`parent_id`)
CONSTRAINT `??????` FOREIGN KEY (`parent_id`)
REFERENCES `types` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
)
But What value need in line 9?