<?php
declare(strict_types=1);
namespace ProductsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230515091041 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE products_bundle__attachment CHANGE name name VARCHAR(32) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__brand CHANGE name name VARCHAR(64) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__feature_value CHANGE name name VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__product_context CHANGE name name VARCHAR(128) NOT NULL, CHANGE reference reference VARCHAR(64) DEFAULT NULL');
$this->addSql('ALTER TABLE products_bundle__product_image CHANGE legend legend VARCHAR(128) NOT NULL');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE products_bundle__attachment CHANGE name name VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__brand CHANGE name name VARCHAR(255) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__feature_value CHANGE name name VARCHAR(256) NOT NULL');
$this->addSql('ALTER TABLE products_bundle__product_context CHANGE name name VARCHAR(255) NOT NULL, CHANGE reference reference VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE products_bundle__product_image CHANGE legend legend VARCHAR(255) NOT NULL');
}
}