blob: 6f050cc3ec69a5bf7757ff9b4b644cff734d2faa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<?php
class Tic4044InvisibleStudygroups extends Migration {
/**
* short description of this migration
*/
function description() {
return 'Allow invisible studygroups via global setting';
}
/**
* perform this migration
*/
function up() {
Config::get()->create('STUDYGROUPS_INVISIBLE_ALLOWED', [
'value' => 0,
'is_default' => 0,
'type' => 'boolean',
'range' => 'global',
'section' => 'studygroups',
'description' => _('Ermöglicht unsichtbare Studiengruppen')
]);
}
/**
* revert this migration
*/
function down() {
Config::get()->delete('STUDYGROUPS_INVISIBLE_ALLOWED');
}
}
|