Skip to content

Commit

Permalink
MDL-9306 upgrade.php set to upgrade course whose format is weekscss t…
Browse files Browse the repository at this point in the history
…o weeks
  • Loading branch information
nicolasconnault committed Nov 8, 2007
1 parent 6469bc3 commit a5b0871
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/db/upgrade.php
Expand Up @@ -2599,6 +2599,11 @@ function xmldb_main_upgrade($oldversion=0) {
upgrade_main_savepoint($result, 2007101502);
}

if ($result && $oldversion < 2007110800) {
// Update courses that used weekscss to weeks
$result = $result && set_field('course', 'format', 'weeks', 'format', 'weekscss');
}

return $result;
}

Expand Down
2 changes: 1 addition & 1 deletion version.php
Expand Up @@ -6,7 +6,7 @@
// This is compared against the values stored in the database to determine
// whether upgrades should be performed (see lib/db/*.php)

$version = 2007101502; // YYYYMMDD = date
$version = 2007110800; // YYYYMMDD = date
// XY = increments within a single day

$release = '2.0 dev'; // Human-friendly version name
Expand Down

0 comments on commit a5b0871

Please sign in to comment.