<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class UpdateConversationInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('conversations', function(Blueprint $table) {
           $table->integer('hostel_id')->nullable();
           $table->integer('user_id')->nullable();
           $table->integer('room_id')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('conversations', function(Blueprint $table) {
            $table->dropColumn('hostel_id');
            $table->dropColumn('user_id');
            $table->dropColumn('room_id');
        });
    }
}
