File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 */
3232function 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 ;
You can’t perform that action at this time.
0 commit comments