<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task230817189V2 extends AbstractMigration
{
    public function up(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 873912');
        if ($row['id']) {
            $this->execute("UPDATE seguro.propostas set ds_identificador_seguradora = 9474925  where id = 873912");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 874198');
        if ($row['id']) {
            $this->execute("UPDATE seguro.propostas set ds_identificador_seguradora = 9474923   where id = 874198");
        }
    }

    public function down(): void
    {
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 873912');
        if ($row['id']) {
            $this->execute("UPDATE seguro.propostas set ds_identificador_seguradora = 9482048  where id = 873912");
        }
        $row = $this->fetchRow('SELECT id FROM seguro.propostas WHERE id = 874198');
        if ($row['id']) {
            $this->execute("UPDATE seguro.propostas set ds_identificador_seguradora = 9482235  where id = 874198");
        }
    }
}
