From 67affb8216e4ce4e9544d73649b1a75c35a5bcde Mon Sep 17 00:00:00 2001 From: Muhammad Arnaldo Date: Mon, 16 Feb 2026 15:27:39 +0700 Subject: [PATCH] MDL-87588 mod_bigbluebuttonbn: Fix missing recordings_deleted column --- public/mod/bigbluebuttonbn/db/upgrade.php | 15 +++++++++++++++ public/mod/bigbluebuttonbn/version.php | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/public/mod/bigbluebuttonbn/db/upgrade.php b/public/mod/bigbluebuttonbn/db/upgrade.php index 482bb4b3755..7b72fd6ce9d 100644 --- a/public/mod/bigbluebuttonbn/db/upgrade.php +++ b/public/mod/bigbluebuttonbn/db/upgrade.php @@ -100,6 +100,21 @@ function xmldb_bigbluebuttonbn_upgrade($oldversion = 0) { // Automatically generated Moodle v5.1.0 release upgrade line. // Put any upgrade step following this. + if ($oldversion < 2025100601) { + // Define field recordings_deleted to be added to bigbluebuttonbn. + // Sites upgraded from external Bigbluebuttonbn plugin to core may be missing this field. + $table = new xmldb_table('bigbluebuttonbn'); + $field = new xmldb_field('recordings_deleted', XMLDB_TYPE_INTEGER, '1', null, XMLDB_NOTNULL, null, '1', 'recordings_html'); + + // Conditionally launch add field recordings_deleted. + if (!$dbman->field_exists($table, $field)) { + $dbman->add_field($table, $field); + } + + // Bigbluebuttonbn savepoint reached. + upgrade_mod_savepoint(true, 2025100601, 'bigbluebuttonbn'); + } + return true; } diff --git a/public/mod/bigbluebuttonbn/version.php b/public/mod/bigbluebuttonbn/version.php index 8891dfed69e..3103153ec11 100644 --- a/public/mod/bigbluebuttonbn/version.php +++ b/public/mod/bigbluebuttonbn/version.php @@ -27,6 +27,6 @@ defined('MOODLE_INTERNAL') || die; -$plugin->version = 2025100600; +$plugin->version = 2025100601; $plugin->requires = 2025092600; $plugin->component = 'mod_bigbluebuttonbn';