diff --git a/main/install/db_main.sql b/main/install/db_main.sql index 54d420cc0a..b000680621 100755 --- a/main/install/db_main.sql +++ b/main/install/db_main.sql @@ -765,7 +765,8 @@ VALUES ('show_link_bug_notification', NULL, 'radio', 'Platform', 'true', 'ShowLinkBugNotificationTitle', 'ShowLinkBugNotificationComment', NULL, NULL, 0), ('course_validation', NULL, 'radio', 'Platform', 'false', 'EnableCourseValidation', 'EnableCourseValidationComment', NULL, NULL, 1), ('course_validation_terms_and_conditions_url', NULL, 'textfield', 'Platform', '', 'CourseValidationTermsAndConditionsLink', 'CourseValidationTermsAndConditionsLinkComment', NULL, NULL, 1), -('chamilo_database_version', NULL, 'textfield', NULL, '1.8.8.12378', 'DokeosDatabaseVersion', '', NULL, NULL, 0); +('chamilo_database_version', NULL, 'textfield', NULL, '1.8.8.12378', 'DokeosDatabaseVersion', '', NULL, NULL, 0), +('enabled_wiris',NULL,'radio','Editor','false','EnabledWirisTitle','EnabledWirisComment',NULL,NULL, 0); UNLOCK TABLES; @@ -983,7 +984,10 @@ VALUES ('show_link_bug_notification', 'true', 'Yes'), ('show_link_bug_notification', 'false', 'No'), ('course_validation', 'true', 'Yes'), -('course_validation', 'false', 'No'); +('course_validation', 'false', 'No'), +('enabled_wiris','true','Yes'), +('enabled_wiris','false','No') +; UNLOCK TABLES; diff --git a/main/install/migrate-db-1.8.7-1.8.8-pre.sql b/main/install/migrate-db-1.8.7-1.8.8-pre.sql index a39c28561b..463a69ec7b 100755 --- a/main/install/migrate-db-1.8.7-1.8.8-pre.sql +++ b/main/install/migrate-db-1.8.7-1.8.8-pre.sql @@ -41,6 +41,11 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('course_val INSERT INTO settings_options (variable, value, display_text) VALUES ('course_validation', 'false', 'No'); INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('course_validation_terms_and_conditions_url', NULL, 'textfield', 'Platform', '', 'CourseValidationTermsAndConditionsLink', 'CourseValidationTermsAndConditionsLinkComment', NULL, NULL, 1); UPDATE settings_current SET selected_value='1' WHERE variable='advanced_filemanager'; + +INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('enabled_wiris',NULL,'radio','Editor','false','EnabledWirisTitle','EnabledWirisComment',NULL,NULL, 0); +INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_wiris', 'true', 'Yes'); +INSERT INTO settings_options (variable, value, display_text) VALUES ('enabled_wiris', 'false', 'No'); + -- xxSTATSxx ALTER TABLE track_e_exercices ADD COLUMN orig_lp_item_view_id INT NOT NULL DEFAULT 0;