<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20250916233441 extends AbstractMigration
{
public function getDescription(): string
{
return 'Renomeia a coluna `order` da tabela std_top10 para `order_value` para evitar conflito com palavra reservada';
}
public function up(Schema $schema): void
{
$this->addSql("ALTER TABLE std_top10 CHANGE `order` order_value INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Ordem manual para exibição'");
}
public function down(Schema $schema): void
{
$this->addSql("ALTER TABLE std_top10 CHANGE order_value `order` INT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'Ordem manual para exibição'");
}
}