aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.153_tic_4163_add_studip_shortname.php
blob: 793def6970fa72b57244626372f924bb2796b9f8 (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
33
34
35
<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of 148_tic_4520_sem_tree_display
 *
 * @author intelec
 */
class Tic4163AddStudipShortname extends Migration {
    
    function description() {
        return 'Adds studip short name (for notifications) in confing';
    }

    function up() {
        Config::get()->create('STUDIP_SHORT_NAME', [
            'value' => 'Stud.IP',
            'is_default' => 'Stud.IP',
            'type' => 'string',
            'range' => 'global',
            'section' => 'global',
            'description' => _('Studip Kurzname')
        ]);
    }
    
    function down() {
        Config::get()->delete('STUDIP_SHORT_NAME');
    }

}