Updating chash.

1.10.x
Julio Montoya 12 years ago
parent fb8362b6db
commit 4f16ee34e9
  1. 4
      vendor/chamilo/chash/src/Chash/Resources/Database/1.10.0/db_main.sql
  2. 2
      vendor/chamilo/chash/src/Chash/Resources/Database/1.10.0/migrate-db-1.9.0-1.10.0-pre.sql

@ -594,7 +594,7 @@ CREATE TABLE IF NOT EXISTS session_field (
DROP TABLE IF EXISTS session_field_options;
CREATE TABLE IF NOT EXISTS session_field_options(
id int NOT NULL auto_increment,
id int unsigned NOT NULL auto_increment,
field_id int NOT NULL,
option_value text,
option_display_text varchar(255),
@ -607,7 +607,7 @@ CREATE TABLE IF NOT EXISTS session_field_options(
DROP TABLE IF EXISTS session_field_values;
CREATE TABLE IF NOT EXISTS session_field_values(
id bigint NOT NULL auto_increment,
id bigint unsigned NOT NULL auto_increment,
session_id int NOT NULL,
field_id int NOT NULL,
field_value text,

@ -15,7 +15,7 @@
-- Optimize tracking query very often queried on busy campuses
CREATE TABLE IF NOT EXISTS session_field_options (id int NOT NULL auto_increment, field_id int NOT NULL, option_value text, option_display_text varchar(255), option_order int, tms DATETIME NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS session_field_options (id int unsigned NOT NULL auto_increment, field_id int NOT NULL, option_value text, option_display_text varchar(255), option_order int, tms DATETIME NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS course_field_options (id int NOT NULL auto_increment, field_id int NOT NULL, option_value text, option_display_text varchar(255), option_order int, tms DATETIME NOT NULL default '0000-00-00 00:00:00', PRIMARY KEY (id));
CREATE TABLE IF NOT EXISTS c_quiz_order( iid bigint unsigned NOT NULL auto_increment, c_id int unsigned NOT NULL, session_id int unsigned NOT NULL, exercise_id int NOT NULL, exercise_order INT NOT NULL, PRIMARY KEY (iid));
CREATE TABLE IF NOT EXISTS c_student_publication_rel_document (id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, work_id INT NOT NULL, document_id INT NOT NULL, c_id INT NOT NULL);

Loading…
Cancel
Save