aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.131_score_config_option.php
blob: 9da9fabb861130da279368cd14ebf76b285080f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php

class ScoreConfigOption extends Migration
{
    function description()
    {
        return 'adds config option for stud.ip score, ranking and kings';
    }

    function up()
    {
        DBManager::get()->exec("
            INSERT INTO config
            (config_id, field, value, is_default, `type`, `range`, section, mkdate, chdate, description, comment)
            VALUES
            ('e6b6b8be6caf8abf0904c29e30e9b129', 'SCORE_ENABLE', '1', 1, 'boolean', 'global', 'modules', 
             UNIX_TIMESTAMP(),  UNIX_TIMESTAMP(), 'Schaltet ein oder aus, ob die Rangliste und die Score-Funktion global verfügbar sind.', '')
        ");
    }

}