<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class TaskInc64208 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1091803');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1091803,   8, 1091803, NULL, FALSE, NULL, '10611149', TRUE,  315, FALSE)");
        }
    }
    
    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 1091803');
        if ($row['id']) {
            $this->execute("SELECT manutencao.atualizar_status ( 1091803, 162, 1079398, NULL, FALSE, NULL, '10513867', TRUE, NULL, FALSE)");
        }
    }
}
