<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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