<?php

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

class CreateCountryAreaPackageTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('country_area_package', function(Blueprint $table)
		{
			$table->increments('id');
			$table->integer('country_area_id')->unsigned()->index('country_area_package_country_area_id_foreign');
			$table->integer('service_package_id')->unsigned()->nullable();
			$table->integer('service_type_id');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('country_area_package');
	}

}
