<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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