<?php

use App\Models\Catalogs\OtherPaymentType;
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class InsertUpdateOtherPaymentTypes extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $other_payment_type = OtherPaymentType::updateOrCreate(
            ['code' => '009'],
            [
                'name' => 'Reembolso de descuentos efectuados para el crédito de vivienda.',
                'sort_order' => '9'
            ]
        );
    }

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