MDL-48510 inbound: use 0 expiration for private files handler

This commit is contained in:
Ankit Agarwal
2015-01-15 08:32:40 +00:00
committed by Dan Poltawski
parent 017de890cb
commit c93e6c5c17
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -4113,5 +4113,15 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2014120102.00);
}
if ($oldversion < 2015010800.01) {
// Make sure the private files handler is not set to expire.
$DB->set_field('messageinbound_handlers', 'defaultexpiration', 0,
array('classname' => '\core\message\inbound\private_files_handler'));
// Main savepoint reached.
upgrade_main_savepoint(true, 2015010800.01);
}
return true;
}
+1 -1
View File
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2015010800.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2015010800.01; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.