<?php

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

class UpdateDiscountHostels extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
	    Schema::table('discount_hostels', function(Blueprint $table) {
	    	$table->dropColumn('hostel_id');
	    });

	    Schema::create('discount_hostel_item', function(Blueprint $table) {
	    	$table->increments('id');
	    	$table->integer('hostel_id')->nullable();
	    	$table->integer('discount_hostel_id')->nullable();
	    });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
