<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2301201601 extends AbstractMigration
{
    public function up(): void
    {
        $this->execute(<<<SQL
INSERT INTO sistema.tipo_arquivo_corretor (ds_tipo_arquivo, ds_chave_tipo_arquivo)
                                   VALUES ('Formulário de Cadastro', 'FORMULARIO_CADASTRO');

UPDATE sistema.tipo_arquivo_corretor SET fl_ativo = 'f' WHERE id = 1;
SQL
);
    }

    public function down(): void
    {
        $this->execute(<<<SQL
DELETE FROM sistema.tipo_arquivo_corretor WHERE ds_chave_tipo_arquivo  = 'FORMULARIO_CADASTRO';

UPDATE sistema.tipo_arquivo_corretor SET fl_ativo = 't' WHERE id = 1;
SQL
);
    }
}
