<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskSr48201 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 939208');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (939208,  8, 939208, NULL, FALSE, 1000111250072, '9782352')");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2024-09-02 18:45:04' WHERE id_proposta = 939208 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
    }

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


