Commit b9f85917 authored by Estéban Ristich's avatar Estéban Ristich
Browse files

Fix Issue #62 Update SQL recipe table

parent ba26ec56
......@@ -44,9 +44,11 @@ CREATE TABLE IF NOT EXISTS `intervention` (
CREATE TABLE IF NOT EXISTS `recipe` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`pathname` VARCHAR(500) NOT NULL,
`pathname` VARCHAR(500) DEFAULT NULL,
`description` VARCHAR(150) NOT NULL,
`intervention_id` INT(11) NOT NULL,
`equipment_id` INT(11) NOT NULL,
PRIMARY KEY (`id`),
FOREIGN KEY (`intervention_id`) REFERENCES `intervention`(`id`)
FOREIGN KEY (`intervention_id`) REFERENCES `intervention`(`id`),
FOREIGN KEY (`equipment_id`) REFERENCES `listing`(`id`)
) ENGINE=MyISAM AUTO_INCREMENT=1 CHARSET=utf8;
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment