From 0049b57d588dffd4c4138c3351f39d1a534f781a Mon Sep 17 00:00:00 2001 From: fred-fri <fred-fri@dsv.su.se> Date: Tue, 31 Jul 2012 11:07:19 +0900 Subject: [PATCH] current.sql small caps change --- resources/db_update_scripts/current.sql | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) 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` (