<?php

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

class AddAuthorityToAreaReport extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        \App\Authority::query()->firstOrCreate(["name"=>"客户管理-项目-用仓盘点-审核"],[
            "name"=>"客户管理-项目-用仓盘点-审核",
            "alias_name"=>"客户管理-项目-用仓盘点-审核",
        ]);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        \App\Authority::query()->where("name","客户管理-项目-用仓盘点-审核")->delete();
    }
}
