<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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