<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskInc71093 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1125824');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1125824,  8, 1125824, NULL, FALSE, 1001111041527, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1125824 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1126331');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1126331,  8, 1126331, NULL, FALSE, 1001111041536, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1126331 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1135532');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1135532,  8, 1135532, NULL, FALSE, 1001111041531, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1135532 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1135720');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1135720,  8, 1135720, NULL, FALSE, 1001111041549, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1135720 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1135736');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1135736,  8, 1135736, NULL, FALSE, 1001111041548, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1135736 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136092');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136092,  8, 1136092, NULL, FALSE, 1001111041538, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136092 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136134');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136134,  8, 1136134, NULL, FALSE, 1001111041523, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136134 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136217');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136217,  8, 1136217, NULL, FALSE, 1001111041543, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136217 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136231');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136231,  8, 1136231, NULL, FALSE, 1001111041530, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136231 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136251');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136251,  8, 1136251, NULL, FALSE, 1001111041547, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136251 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136255');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136255,  8, 1136255, NULL, FALSE, 1001111041546, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136255 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136323');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136323,  8, 1136323, NULL, FALSE, 1001111041545, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136323 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136338');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136338,  8, 1136338, NULL, FALSE, 1001111041529, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136338 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136343');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136343,  8, 1136343, NULL, FALSE, 1001111041544, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136343 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136344');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136344,  8, 1136344, NULL, FALSE, 1001111041524, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136344 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136349');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136349,  8, 1136349, NULL, FALSE, 1001111041532, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136349 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136356');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136356,  8, 1136356, NULL, FALSE, 1001111041539, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136356 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136357');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136357,  8, 1136357, NULL, FALSE, 1001111041534, NULL)");
            $this->execute("UPDATE seguro.propostas_status SET dt_criacao = '2026-08-31 16:00:00' WHERE id_proposta = 1136357 AND id_usuario_criacao = 2068 AND id_status = 8");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1125824');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1125824, 62, 1125824, NULL, FALSE, 1001111041527, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1125824");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1126331');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1126331, 62, 1126331, NULL, FALSE, 1001111041536, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1126331");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1135532');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1135532, 62, 1135532, NULL, FALSE, 1001111041531, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1135532");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1135720');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1135720, 62, 1135720, NULL, FALSE, 1001111041549, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1135720");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1135736');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1135736, 62, 1135736, NULL, FALSE, 1001111041548, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1135736");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136092');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136092, 62, 1136092, NULL, FALSE, 1001111041538, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136092");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136134');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136134, 62, 1136134, NULL, FALSE, 1001111041523, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136134");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136217');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136217, 62, 1136217, NULL, FALSE, 1001111041543, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136217");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136231');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136231, 62, 1136231, NULL, FALSE, 1001111041530, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136231");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136251');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136251, 62, 1136251, NULL, FALSE, 1001111041547, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136251");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136255');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136255, 62, 1136255, NULL, FALSE, 1001111041546, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136255");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136323');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136323, 62, 1136323, NULL, FALSE, 1001111041545, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136323");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136338');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136338, 62, 1136338, NULL, FALSE, 1001111041529, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136338");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136343');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136343, 62, 1136343, NULL, FALSE, 1001111041544, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136343");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136344');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136344, 62, 1136344, NULL, FALSE, 1001111041524, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136344");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136349');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136349, 62, 1136349, NULL, FALSE, 1001111041532, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136349");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136356');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136356, 62, 1136356, NULL, FALSE, 1001111041539, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136356");
        }
            
            $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1136357');
            if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1136357, 62, 1136357, NULL, FALSE, 1001111041534, NULL)");
            $this->execute("UPDATE seguro.propostas SET nr_apolice = NULL WHERE id = 1136357");
        }
    }
}
