<?php

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

class UpdateImportExportHostel extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('import_export', function(Blueprint $table) {
           $table->integer('hostel_id')->nullable();
           $table->integer('room_id')->nullable();
           $table->string('hostel_name')->nullable();
           $table->string('room_name')->nullable();
           $table->text('note')->nullable();
        });
    }

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