<?php

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

class Update1567087706StreetNamesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('street_names', function (Blueprint $table) {
            if(Schema::hasColumn('street_names', 'type')) {
                $table->dropColumn('type');
            }
            
        });

    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('street_names', function (Blueprint $table) {
                        $table->string('type')->nullable();
                
        });

    }
}
