Adding index

skala
Julio Montoya 12 years ago
parent 60ea5be56a
commit 18ecec604e
  1. 3
      main/install/1.10.0/db_main.sql
  2. 4
      main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql

@ -3153,6 +3153,7 @@ CREATE TABLE track_e_lastaccess (
access_tool varchar(30) default NULL,
access_session_id int unsigned default NULL,
PRIMARY KEY (access_id),
KEY access_c_id_user_id (c_id, access_user_id),
KEY access_user_id (access_user_id),
KEY access_cours_code (c_id),
KEY access_session_id (access_session_id)
@ -3496,4 +3497,4 @@ ALTER TABLE question_field_values ADD INDEX idx_question_field_values_question_i
ALTER TABLE question_field_values ADD INDEX idx_question_field_values_field_id(field_id);
-- Do not move this
UPDATE settings_current SET selected_value = '1.10.005' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.006' WHERE variable = 'chamilo_database_version';

@ -201,7 +201,7 @@ ALTER TABLE track_e_lastaccess ADD COLUMN c_id int unsigned NOT NULL default 0;
ALTER TABLE track_e_access ADD COLUMN c_id int unsigned NOT NULL default 0;
ALTER TABLE track_e_downloads ADD COLUMN c_id int unsigned NOT NULL default 0;
ALTER TABLE track_e_links ADD COLUMN c_id int unsigned NOT NULL default 0;
ALTER TABLE track_e_lastaccess ADD INDEX ( c_id, access_user_id ) ;
ALTER TABLE track_e_lastaccess ADD INDEX (c_id, access_user_id);
ALTER TABLE c_quiz ADD COLUMN autolaunch int DEFAULT 0;
RENAME TABLE c_quiz_question_category TO c_quiz_category;
@ -264,4 +264,4 @@ ALTER TABLE c_quiz_category MODIFY COLUMN parent_id int default null;
ALTER TABLE track_e_course_access MODIFY COLUMN course_access_id bigint unsigned auto_increment;
-- Do not move this
UPDATE settings_current SET selected_value = '1.10.0.005' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.006' WHERE variable = 'chamilo_database_version';
Loading…
Cancel
Save