Skip to content

Commit

Permalink
foreign key fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ridz1208 committed May 23, 2019
1 parent 97e17a9 commit 414355d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SQL/0000-00-00-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ INSERT INTO subproject (title, useEDC, WindowDifference) VALUES
CREATE TABLE `project_subproject_rel` (
`ProjectSubprojectRelID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`ProjectID` int(2) NOT NULL,
`SubprojectID` int(2) NOT NULL,
`SubprojectID` int(10) unsigned NOT NULL,
PRIMARY KEY (`ProjectSubprojectID`),
CONSTRAINT `UK_project_subproject_rel_ProjectID_SubprojectID` UNIQUE KEY (ProjectID, SubprojectID),
CONSTRAINT `FK_project_subproject_rel_ProjectID` FOREIGN KEY (`ProjectID`) REFERENCES `Project` (`ProjectID`) ON DELETE CASCADE,
Expand Down

0 comments on commit 414355d

Please sign in to comment.