From ab1fcdba7bf1471ef9e97bfae5e5e7e60a37b55b Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Fri, 8 Aug 2008 11:12:51 +0200 Subject: [PATCH] [svn r15960] add delineation in hotspot_type enum options --- main/inc/lib/add_course.lib.inc.php | 2 +- main/install/migrate-db-1.8.5-1.8.6-pre.sql | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/inc/lib/add_course.lib.inc.php b/main/inc/lib/add_course.lib.inc.php index 69152ad41a..745f5e0fc4 100644 --- a/main/inc/lib/add_course.lib.inc.php +++ b/main/inc/lib/add_course.lib.inc.php @@ -624,7 +624,7 @@ function update_Db_course($courseDbName) ponderation smallint default NULL, position mediumint unsigned NOT NULL default 1, 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) )"; api_sql_query($sql, __FILE__, __LINE__); diff --git a/main/install/migrate-db-1.8.5-1.8.6-pre.sql b/main/install/migrate-db-1.8.5-1.8.6-pre.sql index 1a0a9ee538..421610cf65 100644 --- a/main/install/migrate-db-1.8.5-1.8.6-pre.sql +++ b/main/install/migrate-db-1.8.5-1.8.6-pre.sql @@ -44,3 +44,4 @@ ALTER TABLE survey_question_option ADD value int NOT NULL default 0; UPDATE tool SET category = 'interaction' WHERE name = 'forum'; ALTER TABLE survey ADD show_form_profile int NOT NULL default 0; 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;