<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2208241136 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.proponentes WHERE id = 37754');
        if ($row['id']) {
            $this->execute("INSERT INTO public.proponentes_liberados_capacidade VALUES (37754)");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.proponentes WHERE id = 37754');
        if ($row['id']) {
            $this->execute("DELETE FROM public.proponentes_liberados_capacidade WHERE id_proponente = 37754");
        }
    }
}
