[svn r15960] add delineation in hotspot_type enum options

skala
Eric Marguin 18 years ago
parent f43300c185
commit ab1fcdba7b
  1. 2
      main/inc/lib/add_course.lib.inc.php
  2. 1
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

@ -624,7 +624,7 @@ function update_Db_course($courseDbName)
ponderation smallint default NULL, ponderation smallint default NULL,
position mediumint unsigned NOT NULL default 1, position mediumint unsigned NOT NULL default 1,
hotspot_coordinates tinytext, hotspot_coordinates tinytext,
hotspot_type enum('square','circle','poly') default NULL, hotspot_type enum('square','circle','poly','delineation') default NULL,
PRIMARY KEY (id, question_id) PRIMARY KEY (id, question_id)
)"; )";
api_sql_query($sql, __FILE__, __LINE__); api_sql_query($sql, __FILE__, __LINE__);

@ -44,3 +44,4 @@ ALTER TABLE survey_question_option ADD value int NOT NULL default 0;
UPDATE tool SET category = 'interaction' WHERE name = 'forum'; UPDATE tool SET category = 'interaction' WHERE name = 'forum';
ALTER TABLE survey ADD show_form_profile int NOT NULL default 0; ALTER TABLE survey ADD show_form_profile int NOT NULL default 0;
ALTER TABLE survey ADD form_fields TEXT NOT NULL; ALTER TABLE survey ADD form_fields TEXT NOT NULL;
ALTER TABLE quiz_answer CHANGE hotspot_type hotspot_type ENUM( 'square', 'circle', 'poly', 'delineation' ) NULL DEFAULT NULL;

Loading…
Cancel
Save