<?php

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

class AddFacilityRequest extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::table('facility_request', function(Blueprint $table)
		{
			$table->integer('hub_id')->unsigned();

			$table->foreign('hub_id')->references('id')->on('hubs');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::table('facility_request', function(Blueprint $table)
		{

		});
	}

}
