|
@@ -722,7 +722,11 @@ VALUES
|
|
|
('allow_terms_conditions', NULL, 'radio', 'Platform', 'false', 'AllowTermsAndConditionsTitle', 'AllowTermsAndConditionsComment', NULL, NULL,0),
|
|
|
('show_tutor_data',NULL,'radio','Platform','true','ShowTutorDataTitle','ShowTutorDataComment',NULL,NULL, 1),
|
|
|
('show_teacher_data',NULL,'radio','Platform','true','ShowTeacherDataTitle','ShowTeacherDataComment',NULL,NULL, 1),
|
|
|
-('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.1.8171','DokeosDatabaseVersion','',NULL,NULL,0);
|
|
|
+('course_create_active_tools','enable_search','checkbox','Tools','false','CourseCreateActiveToolsTitle','CourseCreateActiveToolsComment',NULL,'Search',0),
|
|
|
+('search_enabled',NULL,'radio','Tools','false','EnableSearchTitle','EnableSearchComment',NULL,NULL,1),
|
|
|
+('search_prefilter_prefix',NULL, NULL,'Search','','SearchPrefilterPrefix','SearchPrefilterPrefixComment',NULL,NULL,0),
|
|
|
+('search_show_unlinked_results',NULL,'radio','Search','true','SearchShowUnlinkedResultsTitle','SearchShowUnlinkedResultsComment',NULL,NULL,1),
|
|
|
+('dokeos_database_version', NULL, 'textfield', NULL,'1.8.6.1.8225','DokeosDatabaseVersion','',NULL,NULL,0);
|
|
|
UNLOCK TABLES;
|
|
|
/*!40000 ALTER TABLE settings_current ENABLE KEYS */;
|
|
|
|
|
@@ -899,7 +903,12 @@ VALUES
|
|
|
('show_tutor_data','true','Yes'),
|
|
|
('show_tutor_data','false','No'),
|
|
|
('show_teacher_data','true','Yes'),
|
|
|
-('show_teacher_data','false','No');
|
|
|
+('show_teacher_data','false','No'),
|
|
|
+('search_enabled', 'true', 'Yes'),
|
|
|
+('search_enabled', 'false', 'No'),
|
|
|
+('search_show_unlinked_results', 'true', 'SearchShowUnlinkedResults'),
|
|
|
+('search_show_unlinked_results', 'false', 'SearchHideUnlinkedResults');
|
|
|
+
|
|
|
|
|
|
UNLOCK TABLES;
|
|
|
|
|
@@ -1061,6 +1070,7 @@ CREATE TABLE gradebook_evaluation (
|
|
|
weight smallint NOT NULL,
|
|
|
max float unsigned NOT NULL,
|
|
|
visible tinyint NOT NULL,
|
|
|
+ type varchar(40) NOT NULL default 'evaluation',
|
|
|
PRIMARY KEY (id)
|
|
|
);
|
|
|
DROP TABLE IF EXISTS gradebook_link;
|
|
@@ -2030,6 +2040,7 @@ CREATE TABLE reservation_item (
|
|
|
description text NOT NULL,
|
|
|
blackout tinyint NOT NULL default 0,
|
|
|
creator int unsigned NOT NULL default 0,
|
|
|
+ always_available TINYINT NOT NULL default 0,
|
|
|
PRIMARY KEY ( id )
|
|
|
);
|
|
|
|
|
@@ -2174,4 +2185,54 @@ CREATE TABLE legal (
|
|
|
|
|
|
INSERT INTO user_field (field_type, field_variable, field_display_text, field_visible, field_changeable) values (1, 'legal_accept','Legal',0,0);
|
|
|
|
|
|
+--
|
|
|
+-- Table structure for certificate with gradebook
|
|
|
+--
|
|
|
+
|
|
|
+CREATE TABLE gradebook_certificate(
|
|
|
+ id bigint unsigned not null auto_increment,
|
|
|
+ cat_id int unsigned not null,
|
|
|
+ user_id int unsigned not null,
|
|
|
+ score_certificate float unsigned not null default 0,
|
|
|
+ date_certificate datetime not null default '0000-00-00 00:00:00',
|
|
|
+ path_certificate text null,
|
|
|
+ PRIMARY KEY(id)
|
|
|
+);
|
|
|
+ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id(cat_id);
|
|
|
+ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_user_id(user_id);
|
|
|
+ALTER TABLE gradebook_certificate ADD INDEX idx_gradebook_certificate_category_id_user_id(cat_id,user_id);
|
|
|
+ALTER TABLE gradebook_category ADD COLUMN document_id int unsigned default NULL;
|
|
|
+
|
|
|
+
|
|
|
|
|
|
+--
|
|
|
+-- Tables structure for search tool
|
|
|
+--
|
|
|
+
|
|
|
+-- 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
|
|
|
+);
|