<?php

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

class UpdateLeadsInfo extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		//
		Schema::table( 'leads', function ( Blueprint $table ) {
			$table->integer( 'province_id' )->nullable();
			$table->integer( 'district_id' )->nullable();
			$table->integer( 'ward_id' )->nullable();
			$table->string( 'source_link', 1000 )->nullable();
			$table->integer('price_min')->nullable();
			$table->integer('price_max')->nullable();
		} );
	}

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