Skip to content
Snippets Groups Projects
Commit c65b6b41 authored by Friederike Schwager's avatar Friederike Schwager Committed by Friederike Schwager
Browse files

bugfix db-update useprintcomments

parent 94b1cd11
No related branches found
No related tags found
No related merge requests found
...@@ -560,5 +560,20 @@ function xmldb_pdfannotator_upgrade($oldversion) { ...@@ -560,5 +560,20 @@ function xmldb_pdfannotator_upgrade($oldversion) {
upgrade_mod_savepoint(true, 2019060300, 'pdfannotator'); upgrade_mod_savepoint(true, 2019060300, 'pdfannotator');
} }
if ($oldversion < 2019070100) {
// Define field useprintcomments to be added to pdfannotator.
$table = new xmldb_table('pdfannotator');
$field = new xmldb_field('useprintcomments', XMLDB_TYPE_INTEGER, '2', null, XMLDB_NOTNULL, null, '0', 'useprint');
// Conditionally launch add field useprintcomments.
if (!$dbman->field_exists($table, $field)) {
$dbman->add_field($table, $field);
}
// Pdfannotator savepoint reached.
upgrade_mod_savepoint(true, 2019030100, 'pdfannotator');
}
return true; return true;
} }
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics). $plugin->component = 'mod_pdfannotator'; // Full name of the plugin (used for diagnostics).
$plugin->version = 2019060300; // The current module version (Date: YYYYMMDDXX). $plugin->version = 2019070100; // The current module version (Date: YYYYMMDDXX).
$plugin->release = 'PDF Annotator v1.1 release 1'; $plugin->release = 'PDF Annotator v1.1 release 1';
$plugin->requires = 2016112900; // Requires this Moodle version. $plugin->requires = 2016112900; // Requires this Moodle version.
$plugin->cron = 0; // Period for cron to check this module (secs). $plugin->cron = 0; // Period for cron to check this module (secs).
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment