<?php
declare(strict_types=1);
namespace ProductsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230706133445 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE products_bundle__brand ADD file_id BINARY(16) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', ADD description LONGTEXT DEFAULT NULL, ADD summary LONGTEXT DEFAULT NULL');
$this->addSql('ALTER TABLE products_bundle__brand ADD CONSTRAINT FK_E6FC9E6993CB796C FOREIGN KEY (file_id) REFERENCES file_manager (id)');
$this->addSql('CREATE INDEX IDX_E6FC9E6993CB796C ON products_bundle__brand (file_id)');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE products_bundle__brand DROP FOREIGN KEY FK_E6FC9E6993CB796C');
$this->addSql('DROP INDEX IDX_E6FC9E6993CB796C ON products_bundle__brand');
$this->addSql('ALTER TABLE products_bundle__brand DROP file_id, DROP description, DROP summary');
}
}