<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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