Skip to content

Commit 2ed2e8b

Browse files
committed
Added author info and fixed syntax error
1 parent 92e0922 commit 2ed2e8b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

sql/MySQL_Nav_Tables.sql

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* SQL File to create tables for CodeIgniter Navigation Library
3+
* Author: Daniel Waghorn
4+
* Format: MySQL;
5+
*/
6+
17
SET NAMES utf8;
28
SET FOREIGN_KEY_CHECKS = 0;
39

@@ -26,7 +32,7 @@ CREATE TABLE `CI-Nav-Items` (
2632
`ParentItem` int(255) DEFAULT NULL,
2733
PRIMARY KEY (`ItemID`),
2834
KEY `fkParentMenu` (`ParentItem`),
29-
CONSTRAINT `ParentRef` FOREIGN KEY (`ParentItem`) REFERENCES `CI-Nav-Items` (`ItemID`) ON DELETE CASCADE ON UPDATE CASCADE,
35+
CONSTRAINT `ParentRef` FOREIGN KEY (`ParentItem`) REFERENCES `CI-Nav-Items` (`ItemID`) ON DELETE CASCADE ON UPDATE CASCADE
3036
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
3137

3238
-- ----------------------------

0 commit comments

Comments
 (0)