<?php
declare(strict_types=1);
namespace CategoriesBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20241126084515 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE categories_bundle__category ADD reference VARCHAR(128) DEFAULT NULL');
$this->addSql('CREATE INDEX reference ON categories_bundle__category (reference)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX reference ON categories_bundle__category');
$this->addSql('ALTER TABLE categories_bundle__category DROP reference');
}
}