diff --git a/main/install/db_main.sql b/main/install/db_main.sql index 6baf277300..02365265d3 100644 --- a/main/install/db_main.sql +++ b/main/install/db_main.sql @@ -328,7 +328,7 @@ UNLOCK TABLES; DROP TABLE IF EXISTS course_rel_user; CREATE TABLE IF NOT EXISTS course_rel_user ( id int unsigned AUTO_INCREMENT, - c_id INT NOT NULL unsigned, + c_id INT unsigned NOT NULL, course_code varchar(40) NOT NULL, user_id int unsigned NOT NULL default '0', status tinyint NOT NULL default '5', @@ -3084,4 +3084,4 @@ CREATE TABLE branch_transaction ( ); -- Do not move this -UPDATE settings_current SET selected_value = '1.10.0.21477' WHERE variable = 'chamilo_database_version'; \ No newline at end of file +UPDATE settings_current SET selected_value = '1.10.0.21537' WHERE variable = 'chamilo_database_version'; \ No newline at end of file diff --git a/main/install/migrate-db-1.9.0-1.10.0-pre.sql b/main/install/migrate-db-1.9.0-1.10.0-pre.sql index f6c535820e..b8204d63f9 100755 --- a/main/install/migrate-db-1.9.0-1.10.0-pre.sql +++ b/main/install/migrate-db-1.9.0-1.10.0-pre.sql @@ -134,7 +134,6 @@ ALTER TABLE track_e_exercices MODIFY COLUMN session_id int unsigned NOT NULL def ALTER TABLE track_e_exercices MODIFY COLUMN exe_exo_id int unsigned NOT NULL default 0; ALTER TABLE course_rel_user MODIFY COLUMN c_id int unsigned NOT NULL; - ALTER TABLE course_rel_user DROP PRIMARY KEY; ALTER TABLE course_rel_user ADD COLUMN c_id int unsigned NOT NULL default 0; ALTER TABLE course_rel_user ADD COLUMN id int unsigned AUTO_INCREMENT, ADD PRIMARY KEY (id); @@ -151,4 +150,4 @@ ALTER TABLE c_item_property MODIFY COLUMN end_visible datetime default NULL; INSERT INTO settings_current (variable, subkey, type, category, selected_value, title, comment, scope, subkeytext, access_url_changeable) VALUES ('user_name_order', NULL, 'textfield', 'Platform', '', 'UserNameOrderTitle', 'UserNameOrderComment', NULL, NULL, 1); -- Do not move this -UPDATE settings_current SET selected_value = '1.10.0.21477' WHERE variable = 'chamilo_database_version'; \ No newline at end of file +UPDATE settings_current SET selected_value = '1.10.0.21537' WHERE variable = 'chamilo_database_version'; \ No newline at end of file