Fixing sql error

skala
Julio Montoya 12 years ago
parent 65dfccb0cb
commit 7ce1b85376
  1. 4
      main/install/db_main.sql
  2. 3
      main/install/migrate-db-1.9.0-1.10.0-pre.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';
UPDATE settings_current SET selected_value = '1.10.0.21537' WHERE variable = 'chamilo_database_version';

@ -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';
UPDATE settings_current SET selected_value = '1.10.0.21537' WHERE variable = 'chamilo_database_version';
Loading…
Cancel
Save