"Fossies" - the Fresh Open Source Software Archive

Member "4.6.1/db/migrations/100_step00248_chat_extinction.php" (8 Apr 2021, 659 Bytes) of package /linux/www/studip-4.6.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 <?php
    2 
    3 class Step00248ChatExtinction extends Migration
    4 {
    5 
    6 
    7     function description()
    8     {
    9         return 'wipe out chat';
   10     }
   11 
   12     function up()
   13     {
   14         $db = DBManager::get();
   15         $db->exec("DROP TABLE IF EXISTS chat_data");
   16         $db->exec("ALTER TABLE user_visibility DROP COLUMN chat");
   17         $db->exec("DELETE FROM config WHERE field = 'CHAT_USE_AJAX_CLIENT'");
   18         $db->exec("DELETE FROM config WHERE field = 'CHAT_ENABLE'");
   19         $db->exec("DELETE FROM config WHERE field = 'CHAT_VISIBILITY_DEFAULT'");
   20         $db->exec("DELETE FROM user_config WHERE field = 'CHAT_USE_AJAX_CLIENT'");
   21     }
   22 
   23     function down()
   24     {
   25     }
   26 }