[svn r18367] allow show results with floating point,in exercice tool - (partial FS#3630)

skala
Isaac Flores 17 years ago
parent b88cb87af3
commit fdb1c40afc
  1. 6
      main/install/dokeos_stats.sql
  2. 4
      main/install/migrate-db-1.8.5-1.8.6-pre.sql

@ -97,8 +97,8 @@ CREATE TABLE track_e_exercices (
exe_date datetime NOT NULL default '0000-00-00 00:00:00',
exe_cours_id varchar(40) NOT NULL default '',
exe_exo_id mediumint unsigned NOT NULL default 0,
exe_result smallint NOT NULL default 0,
exe_weighting smallint NOT NULL default 0,
exe_result float(6,2) NOT NULL default 0,
exe_weighting float(6,2) NOT NULL default 0,
PRIMARY KEY (exe_id),
KEY exe_user_id (exe_user_id),
KEY exe_cours_id (exe_cours_id)
@ -121,7 +121,7 @@ CREATE TABLE track_e_attempt (
question_id int NOT NULL default 0,
answer text NOT NULL,
teacher_comment text NOT NULL,
marks int NOT NULL default 0,
marks float(6,2) NOT NULL default 0,
course_code varchar(40) NOT NULL default '',
position int default 0,
tms datetime NOT NULL default '0000-00-00 00:00:00'

@ -121,7 +121,9 @@ ALTER TABLE track_e_hotspot CHANGE hotspot_coordinate hotspot_coordinate text NO
ALTER TABLE track_e_exercices ADD orig_lp_id int NOT NULL default 0;
ALTER TABLE track_e_exercices ADD orig_lp_item_id int NOT NULL default 0;
ALTER TABLE track_e_exercices ADD exe_duration int UNSIGNED NOT NULL default 0;
ALTER TABLE track_e_exercices CHANGE exe_result exe_result FLOAT( 6, 2 ) NOT NULL DEFAULT 0;
ALTER TABLE track_e_exercices CHANGE exe_weighting exe_weighting FLOAT( 6, 2 ) NOT NULL DEFAULT 0;
ALTER TABLE track_e_attempt CHANGE marks marks FLOAT( 6, 2 ) NOT NULL DEFAULT 0;
-- xxUSERxx
-- xxCOURSExx

Loading…
Cancel
Save