<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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