aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.124_step_00255_important_semnumber.php
blob: c21030ac99466a9e2d7638a0259ac07b58abcb5e (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
<?php

class Step00255ImportantSemnumber extends Migration {

    /**
     * short description of this migration
     */
    function description() {
        return 'sets a global setting to improve the overall presents of semnumbers';
    }

    /**
     * perform this migration
     */
    function up() {
        Config::get()->create('IMPORTANT_SEMNUMBER', [
            'value' => 0, 
            'is_default' => 0, 
            'type' => 'boolean',
            'range' => 'global',
            'section' => 'global',
            'description' => _('Zeigt die Veranstaltungsnummer prominenter in der Suche und auf der Meine Veranstaltungen Seite an')
            ]);
    }

    /**
     * revert this migration
     */
    function down() {
        Config::get()->delete('IMPORTANT_SEMNUMBER');
    }

}
?>