Browse Source

[svn r17934] Adding db vars for the feedback type in Quiz table FS#3511

Julio Montoya 16 years ago
parent
commit
33c2fc41a0

+ 2 - 0
main/inc/lib/add_course.lib.inc.php

@@ -631,6 +631,7 @@ function update_Db_course($courseDbName)
 		max_attempt int NOT NULL default 0,
 		start_time datetime NOT NULL default '0000-00-00 00:00:00',
 		end_time datetime NOT NULL default '0000-00-00 00:00:00',
+		feedback_type int NOT NULL default 0,
 		PRIMARY KEY (id)
 		)";
 	api_sql_query($sql, __FILE__, __LINE__);
@@ -663,6 +664,7 @@ function update_Db_course($courseDbName)
 		position mediumint unsigned NOT NULL default 1,
 	    hotspot_coordinates text,
 	    hotspot_type enum('square','circle','poly','delineation') default NULL,
+	    destination text NOT NULL,
 		PRIMARY KEY (id, question_id)
 		)";
 	api_sql_query($sql, __FILE__, __LINE__);

+ 2 - 0
main/install/migrate-db-1.8.5-1.8.6-pre.sql

@@ -188,3 +188,5 @@ INSERT INTO course_setting(variable,value,category) VALUES ('allow_open_chat_win
 INSERT INTO course_setting(variable,value,category) VALUES ('email_alert_to_teacher_on_new_user_in_course',0,'registration');
 INSERT INTO tool(name,link,image,visibility,admin,address,added_tool,target,category) VALUES ('glossary','glossary/index.php','glossary.gif',0,'0','squaregrey.gif',0,'_self','authoring');
 INSERT INTO tool(name,link,image,visibility,admin,address,added_tool,target,category) VALUES ('notebook','notebook/index.php','notebook.gif',0,'0','squaregrey.gif',0,'_self','interaction');
+ALTER TABLE quiz ADD feedback_type int NOT NULL default 0;
+ALTER TABLE quiz_answer ADD destination text NOT NULL;