@ -1440,6 +1440,7 @@ function update_Db_course($courseDbName)
survey_id int unsigned NOT NULL,
option_text text NOT NULL,
sort int NOT NULL,
value int NOT NULL default '0',
PRIMARY KEY (question_option_id)
)";
$result = api_sql_query($sql, __FILE__, __LINE__) or die(mysql_error($sql));
@ -36,3 +36,4 @@ ALTER TABLE survey_question ADD survey_group_pri int unsigned NOT NULL default 0
ALTER TABLE survey_question ADD survey_group_sec1 int unsigned NOT NULL default 0;
ALTER TABLE survey_question ADD survey_group_sec2 int unsigned NOT NULL default 0;
CREATE TABLE survey_group ( id int unsigned NOT NULL auto_increment, name varchar(20) NOT NULL, description varchar(255) NOT NULL, survey_id int unsigned NOT NULL, PRIMARY KEY (id) );
ALTER TABLE survey_question_option ADD value int NOT NULL default 0;