Skip to content

Commit

Permalink
MDL-62660 tool_dataprivacy: Fix version number in upgrade code
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Aug 21, 2018
1 parent 3717d20 commit 680b918
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions admin/tool/dataprivacy/db/upgrade.php
Expand Up @@ -23,7 +23,6 @@
*/

defined('MOODLE_INTERNAL') || die();
use tool_dataprivacy\api;

/**
* Function to upgrade auth_cas.
Expand Down Expand Up @@ -163,7 +162,7 @@ function xmldb_tool_dataprivacy_upgrade($oldversion) {
upgrade_plugin_savepoint(true, 2017051506, 'tool', 'dataprivacy');
}

if ($oldversion < 2018051406) {
if ($oldversion < 2017051516) {
// Update completed delete requests to new delete status.
$query = "UPDATE {tool_dataprivacy_request}
SET status = :setstatus
Expand All @@ -186,7 +185,7 @@ function xmldb_tool_dataprivacy_upgrade($oldversion) {

$DB->execute($query, $params);

upgrade_plugin_savepoint(true, 2018051406, 'tool', 'dataprivacy');
upgrade_plugin_savepoint(true, 2017051516, 'tool', 'dataprivacy');
}

return true;
Expand Down

0 comments on commit 680b918

Please sign in to comment.