From 11bd69f7e49a0f8b4e1e8904ed293f74d8c6520b Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Mon, 31 Aug 2009 07:45:56 +0200 Subject: [PATCH] Added search tool tables and removed corp SQL which has no meaning anymore --- main/install/dokeos_main_corp.sql | 52 ------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 main/install/dokeos_main_corp.sql diff --git a/main/install/dokeos_main_corp.sql b/main/install/dokeos_main_corp.sql deleted file mode 100644 index cdc787463d..0000000000 --- a/main/install/dokeos_main_corp.sql +++ /dev/null @@ -1,52 +0,0 @@ -INSERT INTO settings_current -(variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) -VALUES -('search_enabled',NULL,'radio','Tools','false','EnableSearchTitle','EnableSearchComment',NULL,NULL), -('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL), -('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL); - -INSERT INTO settings_options -(variable, value, display_text) -VALUES -('search_enabled', 'true', 'Yes'), -('search_enabled', 'false', 'No'), -('search_show_unlinked_results', 'true', 'SearchShowUnlinkedResults'), -('search_show_unlinked_results', 'false', 'SearchHideUnlinkedResults'); - - --- specific fields tables - CREATE TABLE specific_field ( -id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , -code char(1) NOT NULL, -name VARCHAR( 200 ) NOT NULL -); - -CREATE TABLE specific_field_values ( -id INT NOT NULL AUTO_INCREMENT PRIMARY KEY , -course_code VARCHAR( 40 ) NOT NULL , -tool_id VARCHAR( 100 ) NOT NULL , -ref_id INT NOT NULL , -field_id INT NOT NULL , -value VARCHAR( 200 ) NOT NULL -); -ALTER TABLE specific_field ADD CONSTRAINT unique_specific_field__code UNIQUE (code); - --- search engine references to map dokeos resources -CREATE TABLE search_engine_ref ( -id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, -course_code VARCHAR( 40 ) NOT NULL, -tool_id VARCHAR( 100 ) NOT NULL, -ref_id_high_level INT NOT NULL, -ref_id_second_level INT NULL, -search_did INT NOT NULL -); - -INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('allow_message_tool', NULL, 'radio', 'Tools', 'false', 'AllowMessageToolTitle', 'AllowMessageToolComment', NULL, NULL); -INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_message_tool', 'true', 'Yes'); -INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_message_tool', 'false', 'No'); - --- to make a DRH have the same rights as a tutor --- INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext) VALUES ('drhCourseManagerRights',null,'radio','Platform','true','DrhCourseManagerRightsTitle','DrhCoursManagerRightsComment',null,null,1,0); - --- enable RSS feeds in social page -INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'rssfeeds','RSS feeds',0,0);