<?php

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

class UpdateCollectSpend2 extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //

        Schema::table('collect_spends', function (Blueprint $table) {
            $table->bigInteger('amount')->default(0);
            $table->dateTime('date_action')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //

        Schema::table('collect_spends', function (Blueprint $table) {
            $table->dropColumn('amount');
            $table->dropColumn('date_action');
        });
    }
}
