Browse Source

[svn r16711] Update hotspot results fields to allow for larger coordinates sequences

Yannick Warnier 16 years ago
parent
commit
077d209846
2 changed files with 2 additions and 1 deletions
  1. 1 1
      main/install/dokeos_stats.sql
  2. 1 0
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

+ 1 - 1
main/install/dokeos_stats.sql

@@ -215,7 +215,7 @@ CREATE TABLE track_e_hotspot (
   hotspot_question_id int(11) NOT NULL,
   hotspot_answer_id int(11) NOT NULL,
   hotspot_correct tinyint(3) unsigned NOT NULL,
-  hotspot_coordinate varchar(50) NOT NULL,
+  hotspot_coordinate text NOT NULL,
   PRIMARY KEY  (hotspot_id),
   KEY hotspot_course_code (hotspot_course_code),
   KEY hotspot_user_id (hotspot_user_id),

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

@@ -47,6 +47,7 @@ ALTER TABLE track_e_exercices ADD session_id SMALLINT UNSIGNED NOT NULL default
 ALTER TABLE track_e_exercices ADD INDEX ( session_id ) ;
 CREATE TABLE track_e_attempt_recording (exe_id int unsigned NOT NULL, question_id int unsigned NOT NULL,  marks int NOT NULL,  insert_date datetime NOT NULL default '0000-00-00 00:00:00',  author int unsigned NOT NULL,  teacher_comment text NOT NULL);
 ALTER TABLE track_e_attempt_recording ADD INDEX (exe_id);
+ALTER TABLE track_e_hotspot CHANGE hotspot_coordinate hotspot_coordinate text NOT NULL;
 -- xxUSERxx
 
 -- xxCOURSExx