Adding more SQL grading models see BT#3004

skala
Julio Montoya 13 years ago
parent d5fe7d15cf
commit 9f6cf9419a
  1. 7
      main/install/db_main.sql
  2. 4
      main/install/migrate-db-1.8.8-1.9.0-pre.sql

@ -1157,9 +1157,10 @@ VALUES
('enable_help_link', 'false', 'No'),
('allow_teacher_change_gradebook_grading_model', 'true', 'Yes'),
('allow_teacher_change_gradebook_grading_model', 'false', 'No'),
('grading_model', '1*X+2*X+3*X/6', 'Model 1'),
('grading_model', '1*X+1*X+1*X/3', 'Model 2'),
('grading_model', '1*X+1*X+1*X+1*X/4', 'Model 3');
('grading_model', '1*X+1*X', 'Model 1'),
('grading_model', '1*X+1*X+1*X', 'Model 2'),
('grading_model', '1*X+1*X+1*X+1*X/4', 'Model 3'),
('grading_model', '1*X+2*X+1*X+2*X/6', 'Model 4');
/*
('use_custom_pages','true','Yes'),

@ -99,10 +99,10 @@ INSERT INTO settings_options (variable, value, display_text) VALUES ('allow_teac
INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('grading_model', 'grading_model', 'custom', 'Gradebook', 'false', 'GradingModelTitle', 'GradingModelComment', NULL, NULL, 1);
INSERT INTO settings_options (variable, value, display_text) VALUES ('grading_model', '1*X+2*X+3*X/6', 'Model 1');
INSERT INTO settings_options (variable, value, display_text) VALUES ('grading_model', '1*X+1*X', 'Model 1');
INSERT INTO settings_options (variable, value, display_text) VALUES ('grading_model', '1*X+1*X+1*X/3', 'Model 2');
INSERT INTO settings_options (variable, value, display_text) VALUES ('grading_model', '1*X+1*X+1*X+1*X/4', 'Model 3');
INSERT INTO settings_options (variable, value, display_text) VALUES ('grading_model', '1*X+2*X+1*X+2*X/6', 'Model 4');
ALTER TABLE course_rel_user ADD COLUMN legal_agreement INTEGER DEFAULT 0;

Loading…
Cancel
Save