<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2211251445 extends AbstractMigration
{
    public function up() : void {
        $this->execute(<<<SQL
INSERT INTO atendimento.tipo_chamado (
    ds_tipo_chamado,
    ds_chave,
    id_departamento,
    id_responsavel,
    fl_destinatario_empresa_vistoria
) VALUES (
    'Confirmar Contato - Vistoriador',
    'CONFIRMAR_CONTATO_VISTORIADOR',
    23,
    3971,
    true
);
INSERT INTO atendimento.tipo_chamado (
    ds_tipo_chamado,
    ds_chave,
    id_departamento,
    id_responsavel,
    fl_destinatario_corretor
) VALUES (
    'Confirmar Contato - Corretor',
    'CONFIRMAR_CONTATO_CORRETOR',
    23,
    3971,
    true
);
SQL
        );
    }

    public function down() : void {
        $this->execute(<<<SQL
DELETE FROM atendimento.tipo_chamado 
WHERE ds_chave = 'CONFIRMAR_CONTATO_CORRETOR' 
AND id_departamente = 23
AND id_repoonsavel = 3971; 
DELETE FROM atendimento.tipo_chamado 
WHERE ds_chave = 'CONFIRMAR_CONTATO_VISTORIADOR' 
AND id_departamente = 23
AND id_repoonsavel = 3971;
SQL
        );
    }
}