<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

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

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