<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskInc63177 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1082506');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1082506,  8, 1082506, NULL, FALSE, 1001111023222, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1082506 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1083681');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1083681,  8, 1083681, NULL, FALSE, 1001111023223, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1083681 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1083683');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1083683,  8, 1083683, NULL, FALSE, 1001111023215, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1083683 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1083738');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1083738,  8, 1083738, NULL, FALSE, 1001111023206, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1083738 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1084954');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1084954,  8, 1084954, NULL, FALSE, 1001111023214, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1084954 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1084958');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1084958,  8, 1084958, NULL, FALSE, 1001111023218, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1084958 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085020');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085020,  8, 1085020, NULL, FALSE, 1001111023202, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085020 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085041');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085041,  8, 1085041, NULL, FALSE, 1001111023205, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085041 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085049');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085049,  8, 1085049, NULL, FALSE, 1001111023203, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085049 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085065');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085065,  8, 1085065, NULL, FALSE, 1001111023204, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085065 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085074');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085074,  8, 1085074, NULL, FALSE, 1001111023220, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085074 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085140');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085140,  8, 1085140, NULL, FALSE, 1001111023221, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085140 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085164');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085164,  8, 1085164, NULL, FALSE, 1001111023213, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085164 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085208');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085208,  8, 1085208, NULL, FALSE, 1001111023212, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085208 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085382');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085382,  8, 1085382, NULL, FALSE, 1001111023216, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085382 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085483');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085483,  8, 1085483, NULL, FALSE, 1001111023217, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085483 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085900');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085900,  8, 1085900, NULL, FALSE, 1001111023224, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085900 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085905');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085905,  8, 1085905, NULL, FALSE, 1001111023219, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-02-03 17:00:00' WHERE id_proposta = 1085905 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1082506');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1082506, 62, 1082506, NULL, FALSE, 1001111023222, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1082506");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1083681');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1083681, 62, 1083681, NULL, FALSE, 1001111023223, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1083681");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1083683');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1083683, 62, 1083683, NULL, FALSE, 1001111023215, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1083683");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1083738');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1083738, 62, 1083738, NULL, FALSE, 1001111023206, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1083738");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1084954');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1084954, 62, 1084954, NULL, FALSE, 1001111023214, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1084954");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1084958');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1084958, 62, 1084958, NULL, FALSE, 1001111023218, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1084958");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085020');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085020, 62, 1085020, NULL, FALSE, 1001111023202, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085020");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085041');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085041, 62, 1085041, NULL, FALSE, 1001111023205, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085041");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085049');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085049, 62, 1085049, NULL, FALSE, 1001111023203, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085049");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085065');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085065, 62, 1085065, NULL, FALSE, 1001111023204, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085065");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085074');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085074, 62, 1085074, NULL, FALSE, 1001111023220, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085074");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085140');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085140, 62, 1085140, NULL, FALSE, 1001111023221, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085140");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085164');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085164, 62, 1085164, NULL, FALSE, 1001111023213, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085164");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085208');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085208, 62, 1085208, NULL, FALSE, 1001111023212, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085208");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085382');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085382, 62, 1085382, NULL, FALSE, 1001111023216, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085382");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085483');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085483, 62, 1085483, NULL, FALSE, 1001111023217, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085483");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085900');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085900, 62, 1085900, NULL, FALSE, 1001111023224, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085900");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1085905');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1085905, 62, 1085905, NULL, FALSE, 1001111023219, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1085905");
        }
    }
}
