<?php

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

class UpdateQuotaFee extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        //
        Schema::table('electric_quota', function (Blueprint $table) {
            $table->integer('fee_id')->nullable();
        });

        Schema::table('water_quota', function (Blueprint $table) {
            $table->integer('fee_id')->nullable();
        });
    }

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

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