<?php

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

class AddPaymentsModuleClients extends Migration
{

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $modulesClient = new \App\Models\ModuleSetting();
        $modulesClient->module_name = 'payments';
        $modulesClient->type = 'client';
        $modulesClient->status = 'active';
        $modulesClient->save();
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        \App\Models\ModuleSetting::where('module_name', 'payments')->where('type', 'client')->delete();
    }

}
