Elimina restriccion de la ClaveForanea

parent 9d343055
......@@ -19,7 +19,7 @@ CREATE TABLE `daaexample`.`pets` (
`name` varchar(50) NOT NULL,
`peopleID` int NOT NULL,
PRIMARY KEY (`id`),
CONSTRAINT FK_PeoplePet FOREIGN KEY (`peopleID`) REFERENCES people(id)
FOREIGN KEY (`peopleID`) REFERENCES people(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
GRANT ALL ON `daaexample`.* TO 'daa'@'localhost' IDENTIFIED BY 'daa';
......
......@@ -19,7 +19,7 @@ CREATE TABLE `daaexample`.`pets` (
`name` varchar(50) NOT NULL,
`peopleID` int NOT NULL,
PRIMARY KEY (`id`),
CONSTRAINT FK_PeoplePet FOREIGN KEY (`peopleID`) REFERENCES people(id)
FOREIGN KEY (`peopleID`) REFERENCES people(id)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
GRANT ALL ON `daaexample`.* TO 'daa'@'localhost' IDENTIFIED BY 'daa';
......@@ -17,5 +17,5 @@ CREATE TABLE pets (
name varchar(50) NOT NULL,
peopleID int NOT NULL,
PRIMARY KEY (id),
CONSTRAINT FK_PeoplePet FOREIGN KEY (peopleID) REFERENCES people(id)
FOREIGN KEY (peopleID) REFERENCES people(id)
);
\ 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