<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2101062040 extends AbstractMigration
{
    public function up(): void
    {
        $this->execute("alter table sistema.corretores add column if not exists fl_permite_reduzir_comissao boolean default false");
        $this->execute("alter table sistema.prepostos add column if not exists fl_permite_alterar_comissao boolean default false");
    }

    public function down(): void
    {
        $this->execute("alter table sistema.corretores drop column if exists fl_permite_reduzir_comissao");
        $this->execute("alter table sistema.prepostos drop column if exists fl_permite_alterar_comissao");
    }
}
