aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/6.0.44_remove_skype.php
blob: 00654fb67c981a3dcdc8580fff8b1fa84677da1b (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
<?php
final class RemoveSkype extends Migration
{
    public function description()
    {
        return 'Removes ENABLE_SKYPE_INFO configuration';
    }

    public function up()
    {
        $query = "DELETE `config`, `config_values`
                  FROM `config`
                  LEFT JOIN `config_values` USING (`field`)
                  WHERE `field` = 'ENABLE_SKYPE_INFO'";
        DBManager::get()->exec($query);
    }

    public function down()
    {
        $query = "INSERT INTO `config` (`field`, `value`, `type`, `range`, `section`, `mkdate`, `chdate`, `description`)
                  VALUES ('ENABLE_SKYPE_INFO', '0', 'boolean', 'global', 'privacy', 1170242666, 1170242666, 'Ermöglicht die Eingabe / Anzeige eines Skype Namens ')";
        DBManager::get()->exec($query);
    }
}