Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

FIXED:

script was calling fix_course_sortorder() before courseorder have been renamed to coursecount.
  • Loading branch information...
commit f63823b3cc10c41b8c0be7defae6dbf2287ad10d 1 parent d7df380
paca70 authored
Showing with 10 additions and 9 deletions.
  1. +10 −9 lib/db/postgres7.php
View
19 lib/db/postgres7.php
@@ -199,15 +199,6 @@ function main_upgrade($oldversion=0) {
table_column("course", "", "sortorder", "integer", "10", "unsigned", "0", "", "category");
}
- if ($oldversion < 2003080700) {
- notify("Cleaning up categories and course ordering...");
- if ($categories = get_categories()) {
- foreach ($categories as $category) {
- fix_course_sortorder($category->id);
- }
- }
- }
-
if ($oldversion < 2003081502) {
execute_sql(" CREATE TABLE {$CFG->prefix}scale (
id SERIAL PRIMARY KEY,
@@ -234,6 +225,16 @@ function main_upgrade($oldversion=0) {
table_column("course_categories", "courseorder", "coursecount", "integer", "10", "unsigned", "0");
}
+ if ($oldversion < 2003080700) {
+ notify("Cleaning up categories and course ordering...");
+ if ($categories = get_categories()) {
+ foreach ($categories as $category) {
+ fix_course_sortorder($category->id);
+ }
+ }
+ }
+
+
if ($oldversion < 2003082001) {
table_column("course", "", "showgrades", "integer", "2", "unsigned", "1", "", "format");
}
Please sign in to comment.
Something went wrong with that request. Please try again.