Skip to content

Commit

Permalink
Adding setting documents_default_visibility_defined_in_course see
Browse files Browse the repository at this point in the history
BT#6621
  • Loading branch information
jmontoyaa committed Mar 5, 2015
1 parent 073bb9a commit ee1705e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions main/install/db_main.sql
Expand Up @@ -884,7 +884,8 @@ VALUES
('tool_visible_by_default_at_creation','quiz','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Quiz', 1),
('tool_visible_by_default_at_creation','gradebook','checkbox','Tools','true','ToolVisibleByDefaultAtCreationTitle','ToolVisibleByDefaultAtCreationComment',NULL,'Gradebook', 1),
('prevent_session_admins_to_manage_all_users', NULL, 'radio', 'Session', 'false', 'PreventSessionAdminsToManageAllUsersTitle', 'PreventSessionAdminsToManageAllUsersComment', NULL, NULL, 1),
('chamilo_database_version', NULL, 'textfield',NULL, '1.10.0.17','DatabaseVersion','', NULL, NULL, 0);
('documents_default_visibility_defined_in_course', NULL,'radio','Tools','false','DocumentsDefaultVisibilityDefinedInCourseTitle','DocumentsDefaultVisibilityDefinedInCourseComment',NULL, NULL, 1),
('chamilo_database_version', NULL, 'textfield',NULL, '1.10.0.18','DatabaseVersion','', NULL, NULL, 0);
UNLOCK TABLES;
/*!40000 ALTER TABLE settings_current ENABLE KEYS */;

Expand Down Expand Up @@ -1226,7 +1227,9 @@ VALUES
('enable_webcam_clip', 'true', 'Yes'),
('enable_webcam_clip', 'false', 'No'),
('prevent_session_admins_to_manage_all_users', 'true', 'Yes'),
('prevent_session_admins_to_manage_all_users', 'false', 'No');
('prevent_session_admins_to_manage_all_users', 'false', 'No'),
('documents_default_visibility_defined_in_course', 'true', 'Yes');
('documents_default_visibility_defined_in_course', 'false', 'No');

UNLOCK TABLES;

Expand Down
5 changes: 5 additions & 0 deletions main/install/migrate-db-1.9.0-1.10.0-pre.sql
Expand Up @@ -84,6 +84,11 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('show_gloss
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_extra_tools', 'lp', 'Learning path');
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_glossary_in_extra_tools', 'exercise_and_lp', 'ExerciseAndLearningPath');

INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('documents_default_visibility_defined_in_course', NULL,'radio','Tools','false','DocumentsDefaultVisibilityDefinedInCourseTitle','DocumentsDefaultVisibilityDefinedInCourseComment',NULL, NULL, 1);

INSERT INTO settings_options (variable, value, display_text) VALUES ('documents_default_visibility_defined_in_course', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('documents_default_visibility_defined_in_course', 'false', 'No');

-- Do not move this query
UPDATE settings_current SET selected_value = '1.10.0.17' WHERE variable = 'chamilo_database_version';

Expand Down

0 comments on commit ee1705e

Please sign in to comment.