<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2211111422 extends AbstractMigration
{
    public function up(): void
    {
        $this->execute(<<<SQL
    INSERT INTO sistema.tipo_arquivo_empresa(
        dt_criacao,
        fl_ativo,
        fl_del,
        ds_tipo_arquivo,
        ds_chave_tipo_arquivo
        ) VALUES(
            now(),
            TRUE,
            FALSE,
            'CONTRATO DE PRESTAÇÃO DE SERVIÇOS',
            'CONTRATO_PRESTACAO_SERVICOS'
            ),(
            now(),
            TRUE,
            FALSE,
            'ADITIVOS AO CONTRATO DE PRESTAÇÃO DE SERVIÇOS',
            'ADITIVO_CONTRATO_PRESTACAO_SERVICOS'
            );
SQL
        );
    }

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