<?php

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

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

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //        Schema::table('prices', function (Blueprint $table) {
//            if (Schema::hasColumn('prices', 'price_per_squera_meter_copy')) {
//                $table->dropColumn('price_per_squera_meter_copy');
//            }
//        });
    }
}
