<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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