MDL-5690 text format in text type resource is now stored in reference field
This commit is contained in:
@@ -32,6 +32,12 @@ function xmldb_resource_upgrade($oldversion=0) {
|
||||
/// $result = result of "/lib/ddllib.php" function calls
|
||||
/// }
|
||||
|
||||
if ($result && $oldversion < 2007011700) {
|
||||
//move format from options to reference field because it was colliding with course blocks setting
|
||||
execute_sql("UPDATE {$CFG->prefix}resource SET reference=options WHERE type='text' AND reference='' AND options!='showblocks';");
|
||||
//ignore result
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
// This fragment is called by /admin/index.php
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
$module->version = 2006091700;
|
||||
$module->version = 2007011700;
|
||||
$module->requires = 2006091700; // Requires this Moodle version
|
||||
$module->cron = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user