Fixing sql error during installation table gradebook_link

skala
Julio Montoya 12 years ago
parent 547f39bf80
commit 7eee6f0a22
  1. 4
      main/install/db_main.sql
  2. 11
      main/install/migrate-db-1.9.0-1.10.0-pre.sql

@ -1437,7 +1437,7 @@ CREATE TABLE IF NOT EXISTS gradebook_link (
weight float NOT NULL,
visible int NOT NULL,
locked int NOT NULL DEFAULT 0,
evaluation_type_id INT NOT NULL DEFAULT 0
evaluation_type_id INT NOT NULL DEFAULT 0,
PRIMARY KEY(id)
);
@ -3142,4 +3142,4 @@ CREATE TABLE branch_transaction (
);
-- Do not move this
UPDATE settings_current SET selected_value = '1.10.0.20539' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.10.0.20655' WHERE variable = 'chamilo_database_version';

@ -82,12 +82,7 @@ ALTER TABLE session ADD INDEX idx_id_session_admin_id (session_admin_id);
ALTER TABLE c_quiz_question ADD COLUMN parent_id INT unsigned NOT NULL DEFAULT 0;
CREATE TABLE IF NOT EXISTS gradebook_evaluation_type (
id INT unsigned PRIMARY KEY NOT NULL AUTO_INCREMENT,
name varchar(255),
external_id INT unsigned NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS gradebook_evaluation_type(id INT unsigned PRIMARY KEY NOT NULL AUTO_INCREMENT, name varchar(255), external_id INT unsigned NOT NULL DEFAULT 0);
ALTER TABLE gradebook_evaluation ADD COLUMN evaluation_type_id INT NOT NULL DEFAULT 0;
ALTER TABLE gradebook_link ADD COLUMN evaluation_type_id INT NOT NULL DEFAULT 0;
@ -106,5 +101,5 @@ INSERT INTO branch_transaction_status VALUES (1, 'To be executed'), (2, 'Execute
CREATE TABLE branch_transaction (id bigint unsigned not null AUTO_INCREMENT, transaction_id bigint unsigned, branch_id inti unsigned not null default 0, action char(20), item_id char(36), orig_id char(36), dest_id char(36), status_id tinyint not null default 0, time_insert datetime NOT NULL DEFAULT '0000-00-00 00:00:00', time_update datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (id, transaction_id, branch_id));
-- Do not move this
UPDATE settings_current SET selected_value = '1.10.0.20539' WHERE variable = 'chamilo_database_version';
-- Do not move this
UPDATE settings_current SET selected_value = '1.10.0.20655' WHERE variable = 'chamilo_database_version';

Loading…
Cancel
Save