aboutsummaryrefslogtreecommitdiff
path: root/db/migrations/1.100_step00248_chat_extinction.php
blob: 3ff3d318bb014ec69d97b3dabaf0426af89d054d (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
<?php

class Step00248ChatExtinction extends Migration
{


    function description()
    {
        return 'wipe out chat';
    }

    function up()
    {
        $db = DBManager::get();
        $db->exec("DROP TABLE IF EXISTS chat_data");
        $db->exec("ALTER TABLE user_visibility DROP COLUMN chat");
        $db->exec("DELETE FROM config WHERE field = 'CHAT_USE_AJAX_CLIENT'");
        $db->exec("DELETE FROM config WHERE field = 'CHAT_ENABLE'");
        $db->exec("DELETE FROM config WHERE field = 'CHAT_VISIBILITY_DEFAULT'");
        $db->exec("DELETE FROM user_config WHERE field = 'CHAT_USE_AJAX_CLIENT'");
    }

    function down()
    {
    }
}