diff --git a/resources/db_update_scripts/current.sql b/resources/db_update_scripts/current.sql index 4c29889a07..e5abf406d1 100644 --- a/resources/db_update_scripts/current.sql +++ b/resources/db_update_scripts/current.sql @@ -27,14 +27,22 @@ CREATE TABLE `supervisoridea` ( ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -CREATE TABLE `supervisoridea_keyword` ( - `supervisoridea_id` bigint(20) NOT NULL, - `keywords_id` bigint(20) NOT NULL, - PRIMARY KEY (`supervisoridea_id`,`keywords_id`), - KEY `supervisoridea_keyword_key` (`supervisoridea_id`), - KEY `supervisoridea_keyword_key2` (`keywords_id`), - CONSTRAINT `supervisoridea_keyword_key` FOREIGN KEY (`supervisoridea_id`) REFERENCES `supervisoridea` (`id`), - CONSTRAINT `supervisoridea_keyword_key2` FOREIGN KEY (`keywords_id`) REFERENCES `Keyword` (`id`) +-- CREATE TABLE `supervisoridea_Keyword` ( +-- `supervisoridea_id` bigint(20) NOT NULL, +-- `keywords_id` bigint(20) NOT NULL, +-- PRIMARY KEY (`supervisoridea_id`,`keywords_id`), +-- KEY `supervisoridea_keyword_key` (`supervisoridea_id`), +-- KEY `supervisoridea_keyword_key2` (`keywords_id`), +-- CONSTRAINT `supervisoridea_keyword_key` FOREIGN KEY (`supervisoridea_id`) REFERENCES `supervisoridea` (`id`), +-- CONSTRAINT `supervisoridea_keyword_key2` FOREIGN KEY (`keywords_id`) REFERENCES `Keyword` (`id`) +-- ) ENGINE=InnoDB DEFAULT CHARSET=latin1; + +CREATE TABLE IF NOT EXISTS `supervisoridea_Keyword` ( + `supervisoridea_id` bigint(20) NOT NULL, + `keywords_id` bigint(20) NOT NULL, + PRIMARY KEY (`supervisoridea_id`,`keywords_id`), + KEY `FK9842BE9AE316F00` (`keywords_id`), + KEY `FK9842BE98DE85053` (`supervisoridea_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `idea_student` (