<?php

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

class UpdateEwTableData extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('electric_waters', function(Blueprint $table) {
           $table->string('hostel_name')->nullable();
           $table->string('room_name')->nullable();
           $table->integer('contract_id')->nullable();
           $table->string('contract_code')->nullable();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('electric_waters', function(Blueprint $table) {
            $table->dropColumn('hostel_name');
            $table->dropColumn('room_name');
            $table->dropColumn('contract_id');
            $table->dropColumn('contract_code');

        });
    }
}
