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

resurrect missing RESOURCES_ENABLE_BOOKINGSTATUS_COLORING configuration, fixes #1983

Closes #1983

Merge request studip/studip!1290
parent 8eb2cbdc
No related branches found
No related tags found
No related merge requests found
<?php
/**
* @see https://gitlab.studip.de/studip/studip/-/issues/1983
*/
final class ResurrectResourcesEnableBookingstatusColoringConfiguration extends Migration
{
public function description()
{
return 'Resurrects the missing RESOURCES_ENABLE_BOOKINGSTATUS_COLORING configuration';
}
protected function up()
{
$query = "INSERT IGNORE INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`)
VALUES('RESOURCES_ENABLE_BOOKINGSTATUS_COLORING', '1', 'boolean', 'global', 'resources', UNIX_TIMESTAMP(), UNIX_TIMESTAMP(), 'Enable the colored presentation of the room booking status of a date')";
DBManager::get()->exec($query);
}
}
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