<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class Task2305041809 extends AbstractMigration
{
    public function up(): void
    {
        $this->execute(<<<SQL
UPDATE pg_attribute SET atttypmod = 300+4
WHERE attrelid = 'produto.atributos_rn'::regclass
AND attname = 'ds_descricao_atributo';
SQL
        );
    }

    public function down() : void
    {
        $this->execute(<<<SQL
UPDATE pg_attribute SET atttypmod = 200+4
WHERE attrelid = 'produto.atributos_rn'::regclass
AND attname = 'ds_descricao_atributo';
SQL
        );
    }
}
