<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2205191749 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 753252');
        if ($row['id']) {
            $this->execute("SELECT manutencao.anular_endosso(753252,213)");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 753252');
        if ($row['id']) {
            $this->execute("SELECT manutencao.anular_endosso(753252,8)");
        }
    }
}
