<?php

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

class AddArchiveActiveColumn extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('committees', function (Blueprint $table) {
            $table->boolean('archive_active')->default(false)->nullable();
        });

        Schema::table('work_groups', function (Blueprint $table) {
            $table->boolean('archive_active')->default(false)->nullable();
        });
    }

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

        Schema::table('work_groups', function (Blueprint $table) {
            $table->dropColumn('archive_active');
        });
    }
}
