aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/5.3.13_remove_skiplinks_enable.php
blob: e1f7d1408d3e35fce63a6b7f01a8cfde31ea3a69 (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
<?php


class RemoveSkiplinksEnable extends Migration
{
    public function description()
    {
        return 'Removes SKIPLINKS_ENABLE.';
    }

    protected function up()
    {
        $db = DBManager::get();
        $db->exec("DELETE FROM `config_values` WHERE `field` = 'SKIPLINKS_ENABLE'");
        $db->exec("DELETE FROM `config` WHERE `field` = 'SKIPLINKS_ENABLE'");
    }

    protected function down()
    {
        $db = DBManager::get();
        $db->exec(
            "INSERT INTO `config`
            (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`)
            VALUES
            ('SKIPLINKS_ENABLE', '', 'boolean', 'user', 'privacy', 1311411856, 1311411856, 'Wählen Sie diese Option, um Skiplinks beim ersten Drücken der Tab-Taste anzuzeigen (Systemdefault).')"
        );
    }
}