Permalink
Browse files

Correcting field name usemaxgrade in update files.

  • Loading branch information...
1 parent 4c8479f commit 0f9b19dd91979252b1c4f19247354d27a932d77d rkingdon committed Apr 2, 2004
Showing with 2 additions and 2 deletions.
  1. +1 −1 mod/lesson/db/mysql.php
  2. +1 −1 mod/lesson/db/postgres7.php
View
2 mod/lesson/db/mysql.php
@@ -32,7 +32,7 @@ function lesson_upgrade($oldversion) {
}
if ($oldversion < 2004032400) {
- execute_sql(" ALTER TABLE `{$CFG->prefix}lesson` ADD `usegrademax` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER grade");
+ execute_sql(" ALTER TABLE `{$CFG->prefix}lesson` ADD `usemaxgrade` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER grade");
execute_sql(" ALTER TABLE `{$CFG->prefix}lesson` ADD `minquestions` TINYINT(3) UNSIGNED NOT NULL DEFAULT '0' AFTER nextpagedefault");
}
View
2 mod/lesson/db/postgres7.php
@@ -32,7 +32,7 @@ function lesson_upgrade($oldversion) {
}
if ($oldversion < 2004032400) {
- table_column("lesson", "", "usegrademax", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL", "grade");
+ table_column("lesson", "", "usemaxgrade", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL", "grade");
table_column("lesson", "", "minquestions", "INTEGER", "4", "UNSIGNED", "0", "NOT NULL", "nextpagedefault");
}

0 comments on commit 0f9b19d

Please sign in to comment.