<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2307071624 extends AbstractMigration
{
    public function up(): void
    {
        $this->execute(<<<SQL
            ALTER TABLE atendimento.tipo_chamado 
            ADD COLUMN fl_anexar_arquivo_destinatario boolean DEFAULT TRUE,
            ADD COLUMN fl_anexar_arquivo_interno boolean DEFAULT TRUE,
            ADD COLUMN fl_criar_chamado_destinatario boolean DEFAULT TRUE;
SQL
);
    }

    public function down(): void
    {
        $this->execute(<<<SQL
            ALTER TABLE atendimento.tipo_chamado 
            DROP COLUMN fl_anexar_arquivo_destinatario,
            DROP COLUMN fl_anexar_arquivo_interno,
            DROP COLUMN fl_criar_chamado_destinatario;
SQL
);
    }
}
