<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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