<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskSr45820 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 944170');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (944160, 213, 944170, NULL, FALSE)");
        }
    }

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