<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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