Fixing sql error when changing field attributes

skala
Julio Montoya 12 years ago
parent c68ab05696
commit 21d4ec3445
  1. 2
      main/install/db_main.sql
  2. 5
      main/install/migrate-db-1.9.0-1.10.0-pre.sql

@ -3084,4 +3084,4 @@ CREATE TABLE branch_transaction (
);
-- Do not move this
UPDATE settings_current SET selected_value = '1.10.0.21538' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.21541' WHERE variable = 'chamilo_database_version';

@ -133,9 +133,8 @@ ALTER TABLE session_rel_course MODIFY COLUMN nbr_users int unsigned NOT NULL def
ALTER TABLE track_e_exercices MODIFY COLUMN session_id int unsigned NOT NULL default 0;
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 DROP PRIMARY KEY;
ALTER TABLE course_rel_user ADD COLUMN id int unsigned AUTO_INCREMENT, ADD PRIMARY KEY (id);
ALTER TABLE course_rel_user ADD INDEX (c_id, user_id);
@ -150,4 +149,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.21538' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.21541' WHERE variable = 'chamilo_database_version';
Loading…
Cancel
Save