<?php

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

class AddLogistiesItemXjwldf extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        $logistic= \App\Logistic::query()->where('name','新杰物流到付')->first();
        if(!$logistic){
            \App\Logistic::query()->create(['name'=>'新杰物流到付','code'=>'XJWLDF']);
        }
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        \App\Logistic::query()->where('code','XJWLDF')->delete();
    }
}
