<?php

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

class ChangeInventoryDailyLogsAddColumnDepositoryId extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('inventory_daily_logs', function (Blueprint $table) {
            $table->bigInteger('depository_id')->nullable()->comment('外联属性仓');
        });
    }

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