Adding quiz_question.extra field see BT#1914

skala
Julio Montoya 14 years ago
parent 41ecc2f698
commit 8d2dd3c1ae
  1. 1
      main/inc/lib/add_course.lib.inc.php
  2. 1
      main/install/migrate-db-1.8.7-1.8.8-pre.sql

@ -649,6 +649,7 @@ function update_Db_course($course_db_name) {
type tinyint unsigned NOT NULL default 2,
picture varchar(50) default NULL,
level int unsigned NOT NULL default 0,
extra varchar(255) default NULL,
PRIMARY KEY (id)
)" . $charset_clause;
Database::query($sql);

@ -122,6 +122,7 @@ ALTER TABLE lp ADD COLUMN expired_on DATETIME NOT NULL DEFAULT '0000-00-00 00:0
ALTER TABLE lp ADD COLUMN publicated_on DATETIME NOT NULL DEFAULT '0000-00-00 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;
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