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

fixes #4196

Closes #4196

Merge request studip/studip!3027
parent e986fe03
No related branches found
No related tags found
No related merge requests found
<?php
/**
* @see https://gitlab.studip.de/studip/studip/-/issues/4196
*/
return new class extends Migration
{
public function description()
{
return 'Adjust the default cache in table "config" as well"';
}
protected function up()
{
$query = "UPDATE `config`
SET `value` = JSON_REPLACE(`value`, '$.type', ?)
WHERE `field` = 'SYSTEMCACHE'";
DBManager::get()->execute($query, [Studip\Cache\DbCache::class]);
}
protected function down()
{
$query = "UPDATE `config`
SET `value` = JSON_REPLACE(`value`, '$.type', ?)
WHERE `field` = 'SYSTEMCACHE'";
DBManager::get()->execute($query, [StudipDbCache::class]);
}
};
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