diff --git a/local/o365/db/install.xml b/local/o365/db/install.xml
index 21cb55f14..808c8e0e2 100644
--- a/local/o365/db/install.xml
+++ b/local/o365/db/install.xml
@@ -184,7 +184,7 @@
-
+
diff --git a/local/o365/db/upgrade.php b/local/o365/db/upgrade.php
index d296fffd2..79bc5c9f2 100644
--- a/local/o365/db/upgrade.php
+++ b/local/o365/db/upgrade.php
@@ -1141,5 +1141,23 @@ function xmldb_local_o365_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2023100907, 'local', 'o365');
}
+ if ($oldversion < 2023100911) {
+ $sql = 'UPDATE {local_o365_course_request} SET courseid = 0 WHERE courseid IS NULL';
+ $DB->execute($sql);
+
+ // Changing the default of field courseid on table local_o365_course_request to 0.
+ $table = new xmldb_table('local_o365_course_request');
+ $field = new xmldb_field('courseid', XMLDB_TYPE_INTEGER, '10', null, XMLDB_NOTNULL, null, '0', 'requeststatus');
+
+ // Launch change of default for field courseid.
+ $dbman->change_field_default($table, $field);
+
+ // Launch change of nullability for field courseid.
+ $dbman->change_field_notnull($table, $field);
+
+ // O365 savepoint reached.
+ upgrade_plugin_savepoint(true, 2023100911, 'local', 'o365');
+ }
+
return true;
}
diff --git a/local/o365/version.php b/local/o365/version.php
index 5a152021b..8fc0b729b 100644
--- a/local/o365/version.php
+++ b/local/o365/version.php
@@ -26,9 +26,9 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2023100910;
+$plugin->version = 2023100911;
$plugin->requires = 2023100900;
-$plugin->release = '4.3.1';
+$plugin->release = '4.3.2';
$plugin->component = 'local_o365';
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = [
diff --git a/local/office365/version.php b/local/office365/version.php
index b87a8ee15..5918fd8b0 100644
--- a/local/office365/version.php
+++ b/local/office365/version.php
@@ -25,15 +25,15 @@
defined('MOODLE_INTERNAL') || die();
-$plugin->version = 2023100910;
+$plugin->version = 2023100911;
$plugin->requires = 2023100900;
-$plugin->release = '4.3.1';
+$plugin->release = '4.3.2';
$plugin->component = 'local_office365';
$plugin->maturity = MATURITY_STABLE;
$plugin->dependencies = [
'auth_oidc' => 2023100910,
'block_microsoft' => 2023100910,
- 'local_o365' => 2023100910,
+ 'local_o365' => 2023100911,
'repository_office365' => 2023100910,
'theme_boost_o365teams' => 2023100900,
];