<?php

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

class UpdateRoomData extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('rooms', function(Blueprint $table) {
            $table->integer('long')->default(0);
            $table->integer('width')->default(0);
            $table->string('block_name')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('rooms', function(Blueprint $table) {
            $table->dropColumn('long');
            $table->dropColumn('width');
            $table->dropColumn('block_name');
        });
    }
}
