<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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