Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Stud.IP
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcus Eibrink-Lunzenauer
Stud.IP
Commits
b8809912
Commit
b8809912
authored
2 years ago
by
Jan-Hendrik Willms
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
db/migrations/5.1.38_resurrect_resources_enable_bookingstatus_coloring_configuration.php
+18
-0
18 additions, 0 deletions
...resources_enable_bookingstatus_coloring_configuration.php
with
18 additions
and
0 deletions
db/migrations/5.1.38_resurrect_resources_enable_bookingstatus_coloring_configuration.php
0 → 100644
+
18
−
0
View file @
b8809912
<?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
);
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment