<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskSr46927 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 957638');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (913309, 13, 957638, 38,  TRUE, NULL, NULL);");
            $this->execute("SELECT manutencao.atualizar_status (957638, 13, 957638, 38,  TRUE, NULL, NULL);");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 957638');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (913309,  8, 957638, 38, FALSE, NULL, NULL)");
            $this->execute("SELECT manutencao.atualizar_status (957638,  8, 957638, 38, FALSE, NULL, NULL)");
        }
    }
}
