Setting an autonumeric id in track_e_course_access

skala
Julio Montoya 12 years ago
parent 88e384b0b7
commit 0fbbcc38f6
  1. 2
      main/install/1.10.0/db_main.sql
  2. 6
      main/install/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql

@ -3496,4 +3496,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.004' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.005' WHERE variable = 'chamilo_database_version';

@ -201,9 +201,6 @@ 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_course_access MODIFY COLUMN course_access_id bigint unsigned;
ALTER TABLE track_e_lastaccess ADD INDEX ( c_id, access_user_id ) ;
ALTER TABLE c_quiz ADD COLUMN autolaunch int DEFAULT 0;
@ -264,6 +261,7 @@ ALTER TABLE c_quiz_category ADD COLUMN rgt int;
ALTER TABLE c_quiz_category ADD COLUMN root int;
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.004' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.005' WHERE variable = 'chamilo_database_version';
Loading…
Cancel
Save