diff --git a/db/install.xml b/db/install.xml
index fc87bcc..9a5a8ec 100644
--- a/db/install.xml
+++ b/db/install.xml
@@ -75,7 +75,6 @@
-
diff --git a/db/upgrade.php b/db/upgrade.php
index cf553f5..6f38cc1 100644
--- a/db/upgrade.php
+++ b/db/upgrade.php
@@ -973,5 +973,19 @@ function xmldb_local_recompletion_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2023112100, 'local', 'recompletion');
}
+ if ($oldversion < 2023112600) {
+ // Define table local_recompletion_cmv to be created.
+ $table = new xmldb_table('local_recompletion_cmv');
+ $index = new xmldb_index('userid-coursemoduleid', XMLDB_INDEX_UNIQUE, ['userid', 'coursemoduleid']);
+
+ // Conditionally launch drop index.
+ if ($dbman->index_exists($table, $index)) {
+ $dbman->drop_index($table, $index);
+ }
+
+ // Recompletion savepoint reached.
+ upgrade_plugin_savepoint(true, 2023112600, 'local', 'recompletion');
+ }
+
return true;
}
diff --git a/version.php b/version.php
index 69818d7..db7c33a 100644
--- a/version.php
+++ b/version.php
@@ -24,8 +24,8 @@
defined('MOODLE_INTERNAL') || die;
-$plugin->version = 2023112100;
-$plugin->release = 2023112100;
+$plugin->version = 2023112600;
+$plugin->release = 2023112600;
$plugin->maturity = MATURITY_STABLE;
$plugin->requires = 2022112805; // Requires 4.1.
$plugin->component = 'local_recompletion';