added category id field inside gradebook_score_display for filtering by course - private BT#942

skala
Cristian Fasanando 16 years ago
parent 321f101216
commit 084ca9d079
  1. 5
      main/install/db_main.sql
  2. 5
      main/install/migrate-db-1.8.6.2-1.8.7-pre.sql

@ -763,7 +763,7 @@ VALUES
('timezone_value', 'timezones', 'select', 'Timezones', '', 'TimezoneValueTitle','TimezoneValueComment',NULL,'Timezones', 1),
('allow_user_course_subscription_by_course_admin', NULL, 'radio', 'Security', 'true', 'AllowUserCourseSubscriptionByCourseAdminTitle', 'AllowUserCourseSubscriptionByCourseAdminComment', NULL, NULL, 1),
('show_link_bug_notification', NULL, 'radio', 'Platform', 'true', 'ShowLinkBugNotificationTitle', 'ShowLinkBugNotificationComment', NULL, NULL, 0),
('dokeos_database_version', NULL, 'textfield', NULL,'1.8.7.11515','DokeosDatabaseVersion','',NULL,NULL,0);
('dokeos_database_version', NULL, 'textfield', NULL,'1.8.7.11569','DokeosDatabaseVersion','',NULL,NULL,0);
UNLOCK TABLES;
@ -1171,8 +1171,11 @@ CREATE TABLE gradebook_score_display (
id int NOT NULL auto_increment,
score float unsigned NOT NULL,
display varchar(40) NOT NULL,
category_id int NOT NULL default 0,
PRIMARY KEY (id)
);
ALTER TABLE gradebook_score_display ADD INDEX(category_id);
DROP TABLE IF EXISTS user_field;
CREATE TABLE user_field (
id INT NOT NULL auto_increment,

@ -69,7 +69,7 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
ALTER TABLE user_field_values CHANGE id id BIGINT NOT NULL AUTO_INCREMENT;
ALTER TABLE user_field_values ADD INDEX (user_id, field_id);
UPDATE settings_current SET selected_value = '1.8.7.11515' WHERE variable = 'dokeos_database_version';
UPDATE settings_current SET selected_value = '1.8.7.11569' WHERE variable = 'dokeos_database_version';
ALTER TABLE course_rel_user DROP PRIMARY KEY, ADD PRIMARY KEY (course_code, user_id, relation_type);
ALTER TABLE session_rel_user DROP PRIMARY KEY, ADD PRIMARY KEY (id_session, id_user, relation_type);
@ -87,6 +87,9 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_link_bug_notification', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_link_bug_notification', 'false', 'No');
ALTER TABLE gradebook_score_display ADD category_id int NOT NULL DEFAULT 0;
ALTER TABLE gradebook_score_display ADD INDEX (category_id);
-- xxSTATSxx
CREATE TABLE track_e_item_property(id int NOT NULL auto_increment PRIMARY KEY, course_id int NOT NULL, item_property_id int NOT NULL, title varchar(255), content text, progress int NOT NULL default 0, lastedit_date datetime NOT NULL default '0000-00-00 00:00:00', lastedit_user_id int NOT NULL, session_id int NOT NULL default 0);
ALTER TABLE track_e_item_property ADD INDEX (course_id, item_property_id, session_id);

Loading…
Cancel
Save