diff --git a/install/update-6.1.0/update.sql b/install/update-6.1.0/update.sql index 1aa272bd3..c5a476dca 100644 --- a/install/update-6.1.0/update.sql +++ b/install/update-6.1.0/update.sql @@ -63,6 +63,15 @@ CREATE TABLE `tblUserAttributes` ( CONSTRAINT `tblUserAttributes_userid` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE ) ENGINE=InnoDB DEFAULT CHARSET=utf8; +CREATE TABLE `tblLinkType` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `name` text NOT NULL, + `color` char(8) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +ALTER TABLE `tblDocumentLinks` ADD COLUMN `linktype` int(11) DEFAULT NULL, ADD FOREIGN KEY tblDocumentLinks_linktype(`linktype`) REFERENCES tblLinkType(`id`) ON DELETE CASCADE; + UPDATE `tblVersion` set `major`=6, `minor`=1, `subminor`=0, `module`='core'; COMMIT;