From 56ad0b3f883bdd6fe034e1a17cee86ad13b447b4 Mon Sep 17 00:00:00 2001 From: Jonathan Champ Date: Thu, 25 Jan 2024 11:16:01 -0500 Subject: [PATCH] db: explain upgrade step fixes regression --- db/upgrade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/db/upgrade.php b/db/upgrade.php index a77f2712..c1b2b4ae 100755 --- a/db/upgrade.php +++ b/db/upgrade.php @@ -934,10 +934,11 @@ function xmldb_zoom_upgrade($oldversion) { } if ($oldversion < 2024012500) { + // v5.1.0 incorrectly upgraded the zoom table's registration field. It should not be null and should default to 2. $table = new xmldb_table('zoom'); $field = new xmldb_field('registration', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '2', 'option_auto_recording'); - // Launch change of notnull for field registration. + // Launch change of nullability for field registration. $dbman->change_field_notnull($table, $field); // Launch change of default for field registration.