<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskSr62954 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1065952');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1065952, 213, 1029305, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1066629');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1066629, 213, 1034176, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1067253');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1067253, 213, 1037812, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1067266');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1067266, 213, 1037902, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1068234');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1068234, 213, 1042036, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1068603');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1068603, 213, 1047131, NULL, FALSE)");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1065952');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1065952,   8, 1065952, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1066629');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1066629,   8, 1066629, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1067253');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1067253,   8, 1067253, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1067266');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1067266,   8, 1067266, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1068234');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1068234,   8, 1068234, NULL, FALSE)");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1068603');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status (1068603,   8, 1068603, NULL, FALSE)");
        }
    }
}
