aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Michel Vedrine <vedrine@vedrine.org>2019-04-29 13:36:16 +0200
committerJean-Michel Vedrine <vedrine@vedrine.org>2019-04-29 13:41:24 +0200
commit78e02ce7adc2836c27b08e5ac4df919e420b156e (patch)
treec43ab6d06b1089935f09b6afcf44116a4938f902
parenta25470ff263c0f0c975b9f093b1dee6ce2d71b63 (diff)
Fix problem in upgrade step
-rw-r--r--db/upgrade.php8
-rw-r--r--version.php4
2 files changed, 6 insertions, 6 deletions
diff --git a/db/upgrade.php b/db/upgrade.php
index 87ee235..d6d3d02 100644
--- a/db/upgrade.php
+++ b/db/upgrade.php
@@ -109,17 +109,17 @@ function xmldb_qtype_algebra_upgrade($oldversion=0) {
upgrade_plugin_savepoint(true, 2019042706, 'qtype', 'algebra');
}
- if ($oldversion < 2019042707) {
+ if ($oldversion < 2019042900) {
- // Define key questionid (foreign-unique) to be added to qtype_algebra_variables.
+ // Define key questionid (foreign) to be added to qtype_algebra_variables.
$table = new xmldb_table('qtype_algebra_variables');
- $key = new xmldb_key('questionid', XMLDB_KEY_FOREIGN_UNIQUE, array('questionid'), 'question', array('id'));
+ $key = new xmldb_key('questionid', XMLDB_KEY_FOREIGN, array('questionid'), 'question', array('id'));
// Launch add key questionid.
$dbman->add_key($table, $key);
// Record that qtype_algebra savepoint was reached.
- upgrade_plugin_savepoint(true, 2019042707, 'qtype', 'algebra');
+ upgrade_plugin_savepoint(true, 2019042900, 'qtype', 'algebra');
}
return true;
diff --git a/version.php b/version.php
index 747e880..6c767d6 100644
--- a/version.php
+++ b/version.php
@@ -23,8 +23,8 @@
defined('MOODLE_INTERNAL') || die();
$plugin->component = 'qtype_algebra';
-$plugin->version = 2019042800;
+$plugin->version = 2019042900;
$plugin->requires = 2016052300;
-$plugin->release = '1.91 for Moodle 3.1 ... 3.7';
+$plugin->release = '1.92 for Moodle 3.1 ... 3.7';
$plugin->maturity = MATURITY_STABLE;