<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2104282142 extends AbstractMigration
{
    public function up(): void
    {
        $builder = $this->getQueryBuilder();
        $builder->update('seguro.propostas')
                ->set('ds_identificador_seguradora', '8660392')
                ->where(['id' => 406431, 'ds_identificador_seguradora' => '8420023'])
                ->execute();

        $this->execute("SELECT seguro.ativa_proposta_status(406431, 13)");
        $this->execute("SELECT seguro.ativa_proposta_status(419128,213)");
    }

    public function down(): void
    {
        $builder = $this->getQueryBuilder();
        $builder->update('seguro.propostas')
                ->set('ds_identificador_seguradora', '8420023')
                ->where(['id' => 406431, 'ds_identificador_seguradora' => '8660392'])
                ->execute();

        $this->execute("SELECT seguro.ativa_proposta_status(406431,8)");
        $this->execute("SELECT seguro.ativa_proposta_status(419128,8)");
    }
}
