<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2012221836 extends AbstractMigration
{
    public function up(): void
    {
        $delete = $this->getQueryBuilder();
        $delete->delete('seguro.propostas_status')
               ->where(['id_proposta' => 452276, 'id' => 1122452, 'fl_ativo' => 'TRUE'])
               ->execute();
    }

    public function down(): void
    {
        $table = $this->table('seguro.propostas_status');
        $singleRow = [
                       'id_usuario_criacao' => 1033
                     , 'dt_criacao'         => '2020-09-16 14:44:45-03'
                     , 'fl_ativo'           => 'TRUE'
                     , 'fl_del'             => 'FALSE'
                     , 'id_proposta'        => 452276
                     , 'id_status'          => 8
                     , 'id'                 => 1122452
        ];
        $table->insert($singleRow)
              ->saveData();
    }
}
