diff --git a/lib/db/upgrade.php b/lib/db/upgrade.php index 779a41ea2a4..a89e7a72a29 100644 --- a/lib/db/upgrade.php +++ b/lib/db/upgrade.php @@ -2874,5 +2874,15 @@ function xmldb_main_upgrade($oldversion) { upgrade_main_savepoint(true, 2018120300.01); } + if ($oldversion < 2018120300.02) { + // Set all individual conversations to enabled. + $updatesql = "UPDATE {message_conversations} + SET enabled = :enabled + WHERE type = :type"; + $DB->execute($updatesql, ['enabled' => 1, 'type' => 1]); + + upgrade_main_savepoint(true, 2018120300.02); + } + return true; } diff --git a/version.php b/version.php index 11fd6913256..7961d6e7991 100644 --- a/version.php +++ b/version.php @@ -29,7 +29,7 @@ defined('MOODLE_INTERNAL') || die(); -$version = 2018120300.01; // 20181203 = branching date YYYYMMDD - do not modify! +$version = 2018120300.02; // 20181203 = branching date YYYYMMDD - do not modify! // RR = release increments - 00 in DEV branches. // .XX = incremental changes.