Database changes: Allow arbitrary long questions see #1538

skala
Julio Montoya 14 years ago
parent 946977a6b0
commit 859063e5ec
  1. 2
      main/inc/lib/add_course.lib.inc.php
  2. 2
      main/install/db_main.sql
  3. 4
      main/install/migrate-db-1.8.7-1.8.8-pre.sql

@ -643,7 +643,7 @@ function update_Db_course($course_db_name) {
$sql = "
CREATE TABLE `".$TABLEQUIZQUESTIONLIST . "` (
id mediumint unsigned NOT NULL auto_increment,
question varchar(511) NOT NULL,
question TEXT NOT NULL,
description text default NULL,
ponderation float(6,2) NOT NULL default 0,
position mediumint unsigned NOT NULL default 1,

@ -818,7 +818,7 @@ VALUES
('course_hide_tools','course_setting','checkbox','Tools','false','CourseHideToolsTitle','CourseHideToolsComment',NULL,'CourseSettings',1),
('enabled_support_pixlr',NULL,'radio','Tools','false','EnabledPixlrTitle','EnabledPixlrComment',NULL,NULL, 0),
('show_groups_to_users',NULL,'radio','Platform','true','ShowGroupsToUsersTitle','ShowGroupsToUsersComment',NULL,NULL, 0),
('chamilo_database_version',NULL,'textfield',NULL, '1.8.8.13657','DokeosDatabaseVersion','', NULL, NULL, 0);
('chamilo_database_version',NULL,'textfield',NULL, '1.8.8.13673','DokeosDatabaseVersion','', NULL, NULL, 0);
UNLOCK TABLES;

@ -150,7 +150,7 @@ INSERT INTO settings_current (variable, subkey, type, category, selected_value,
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_groups_to_users', 'true', 'Yes');
INSERT INTO settings_options (variable, value, display_text) VALUES ('show_groups_to_users', 'false', 'No');
UPDATE settings_current SET selected_value = '1.8.8.13657' WHERE variable = 'chamilo_database_version';
UPDATE settings_current SET selected_value = '1.8.8.13673' WHERE variable = 'chamilo_database_version';
INSERT INTO language (original_name, english_name, isocode, dokeos_folder, available) VALUES ('हिन्दी', 'hindi', 'hi', 'hindi', 0);
@ -159,7 +159,6 @@ ALTER TABLE session ADD promotion_id INT NOT NULL;
CREATE TABLE career (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL, status INT NOT NULL default '0', created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (id));
CREATE TABLE promotion (id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL, status INT NOT NULL default '0', career_id INT NOT NULL, created_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', updated_at datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY(id));
CREATE TABLE usergroup ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, description TEXT NOT NULL,PRIMARY KEY (id));
CREATE TABLE usergroup_rel_user ( usergroup_id INT NOT NULL, user_id INT NOT NULL );
CREATE TABLE usergroup_rel_course ( usergroup_id INT NOT NULL, course_id INT NOT NULL );
@ -190,6 +189,7 @@ ALTER TABLE lp ADD COLUMN publicated_on DATETIME NOT NULL DEFAULT '0000-00-00 00
CREATE TABLE quiz_question_option (id int NOT NULL, name varchar(255), position int unsigned NOT NULL, PRIMARY KEY (id));
ALTER TABLE quiz_question ADD COLUMN extra varchar(255) DEFAULT NULL;
ALTER TABLE quiz_question CHANGE question question TEXT NOT NULL;
INSERT INTO course_setting(variable,value,category) VALUES ('enable_lp_auto_launch',0,'learning_path');
INSERT INTO course_setting(variable,value,category) VALUES ('pdf_export_watermark_text','','course');

Loading…
Cancel
Save