<?php

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

class UpdateHostelInfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
	    Schema::table('hostels', function (Blueprint $table) {
	    	$table->string('phone')->nullable();
	    	$table->integer('number_floors')->nullable();
	    });

	    Schema::table('rooms', function (Blueprint $table) {
		    $table->integer('start_electric')->nullable();
		    $table->integer('start_water')->nullable();
	    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
	    Schema::table('hostels', function (Blueprint $table) {
		    $table->dropColumn('phone');
		    $table->dropColumn('number_floors');
	    });

	    Schema::table('rooms', function (Blueprint $table) {
		    $table->dropColumn('start_electric');
		    $table->dropColumn('start_water');
	    });
    }
}
