<?php

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

class UpdateStatTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('statistics', function(Blueprint $table) {
           $table->integer('month')->nullable();
           $table->integer('year')->nullable();
           $table->date('date_action')->nullable();
           $table->date('start_date')->nullable();
           $table->date('end_date')->nullable();

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::table('statistics', function(Blueprint $table) {
            $table->dropColumn('month');
            $table->dropColumn('year');
            $table->dropColumn('date_action');
            $table->dropColumn('start_date');
            $table->dropColumn('end_date');
        });
    }
}
