Skip to content

Commit

Permalink
upgrade: set null registration values to new default before alter
Browse files Browse the repository at this point in the history
  • Loading branch information
jrchamp authored Feb 2, 2024
1 parent 66fefba commit 2338ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -938,6 +938,9 @@ function xmldb_zoom_upgrade($oldversion) {
$table = new xmldb_table('zoom');
$field = new xmldb_field('registration', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '2', 'option_auto_recording');

// Set any null values to the new default: 2.
$DB->set_field_select('zoom', 'registration', '2', 'registration IS NULL');

// Launch change of nullability for field registration.
$dbman->change_field_notnull($table, $field);

Expand Down

0 comments on commit 2338ab7

Please sign in to comment.