<?php

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

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

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