Skip to content

Commit ac37808

Browse files
author
felix.manrique
committed
hotfix: corrected upgrade file
1 parent 1a78e2e commit ac37808

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

db/upgrade.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
1616

1717
/**
18-
* Plugin upgrade file.
18+
* Upgrade code for the MRCA plugin.
1919
*
2020
* @package local_mrca
2121
* @copyright 2026 Mr Jacket
@@ -27,15 +27,15 @@
2727
* Upgrade the local_mrca plugin.
2828
*
2929
* @param int $oldversion The version we are upgrading from.
30-
* @return bool Always true.
30+
* @return bool Always returns true.
3131
*/
3232
function xmldb_local_mrca_upgrade($oldversion) {
33-
global $DB;
33+
global $DB; // Moodle pide que esté aquí aunque no se use en este bloque.
3434

35-
// The $oldversion will be used here in the future to execute SQL steps.
3635
if ($oldversion < 2026022400) {
37-
// Upgrade logic will go here.
38-
unset($DB); // This prevents the 'unused variable' error if we keep the global.
36+
// MRCA Golden Release 1.1.5 upgrade step.
37+
// Aquí podrías poner lógica de base de datos, pero el savepoint es OBLIGATORIO.
38+
upgrade_plugin_savepoint(true, 2026022400, 'local', 'mrca');
3939
}
4040

4141
return true;

0 commit comments

Comments
 (0)