Skip to content
Snippets Groups Projects
Commit 4b0c621c authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fix regression in migration, re #1642

parent 72cc1188
No related branches found
No related tags found
No related merge requests found
<?php
class ConsultationExtension extends Migration
{
public function __construct($verbose = false)
{
parent::__construct($verbose);
require_once __DIR__ . '/../../app/routes/Consultations.php';
}
public function description()
{
return 'Extends consultations as described in TIC #9614';
......@@ -103,10 +96,6 @@ class ConsultationExtension extends Migration
FROM `consultation_blocks`
WHERE range_type = 'course'";
DBManager::get()->execute($sql, [$plugin_id]);
RESTAPI\ConsumerPermissions::get('global')->activateRouteMap(
new RESTAPI\Routes\Consultations()
);
}
public function down()
......@@ -162,10 +151,5 @@ class ConsultationExtension extends Migration
LEFT JOIN `roles_plugins` USING (`pluginid`)
WHERE `pluginclassname` = 'ConsultationModule'";
DBManager::get()->exec($query);
// Deactivate routemap
RESTAPI\ConsumerPermissions::get('global')->deactivateRouteMap(
new RESTAPI\Routes\Consultations()
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment