aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.202_remove_skype_status.php
blob: 1a4a298666abd7be4487753076f747f08138950e (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
/**
 * @author  Jan-Hendrik Willms <tleilax+studip@gmail.com>
 * @license GPL2 or any later version
 */
class RemoveSkypeStatus extends Migration
{
    public function description()
    {
        return 'Removes user config entries for skype status';
    }

    public function up()
    {
        $query = "DELETE FROM `user_config`
                  WHERE `field` = 'SKYPE_ONLINE_STATUS'";
        DBManager::get()->exec($query);
    }

    public function down()
    {
        // Nothing since there was not default entry for SKYPE_ONLINE_STATUS
    }
}