Fixed up a few tiny syntax errors in quiz upgrade

This commit is contained in:
mjollnir_
2006-02-19 23:15:55 +00:00
parent 0f03f3a0c2
commit ebe2c5057b
+3 -3
View File
@@ -1019,13 +1019,13 @@ function quiz_upgrade($oldversion) {
) ");
modify_database ('', "
CREATE TABLE `prefix_quiz_essay_states` (
CREATE TABLE prefix_quiz_essay_states (
id SERIAL PRIMARY KEY,
stateid integer NOT NULL default '0',
graded integer NOT NULL default '0',
fraction varchar(10) NOT NULL default '0.0',
response text NOT NULL default '',
) ");
response text NOT NULL default ''
);");
// convert grade fields to real
table_column('quiz_attempts', 'sumgrades', 'sumgrades', 'real', '', '', '0', 'not null');