<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2402221140 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 918791');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (918791,   8, 918791, NULL, NULL)");
            $this->execute("UPDATE seguro.propostas SET ds_identificador_seguradora = 9679302 WHERE id = 918791");


        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 918791');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (918791, 162, 915555, NULL, NULL)");
            $this->execute("UPDATE seguro.propostas SET ds_identificador_seguradora = 9663304 WHERE id = 918791");
        }
    }
}
