<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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