<?php
declare(strict_types=1);
namespace ProductsBundleMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20221228104628 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('DROP INDEX wholesale_price ON products_bundle__declination');
$this->addSql('DROP INDEX is_active ON products_bundle__declination');
$this->addSql('DROP INDEX reference ON products_bundle__declination');
$this->addSql('DROP INDEX sell_price ON products_bundle__declination');
$this->addSql('ALTER TABLE products_bundle__declination DROP reference, DROP wholesale_price, DROP sell_price, DROP is_active');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A38248176');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4A3506A35B');
$this->addSql('ALTER TABLE products_bundle__product DROP FOREIGN KEY FK_C6C10D4AAE870F68');
$this->addSql('DROP INDEX is_active ON products_bundle__product');
$this->addSql('DROP INDEX reference ON products_bundle__product');
$this->addSql('DROP INDEX name ON products_bundle__product');
$this->addSql('DROP INDEX IDX_C6C10D4AAE870F68 ON products_bundle__product');
$this->addSql('DROP INDEX sell_price ON products_bundle__product');
$this->addSql('DROP INDEX wholesale_price ON products_bundle__product');
$this->addSql('DROP INDEX IDX_C6C10D4A3506A35B ON products_bundle__product');
$this->addSql('DROP INDEX IDX_C6C10D4A38248176 ON products_bundle__product');
$this->addSql('ALTER TABLE products_bundle__product DROP eco_part_id, DROP tax_rule_id, DROP currency_id, DROP eco_part_amount, DROP name, DROP reference, DROP summary, DROP description, DROP source, DROP wholesale_price, DROP sell_price, DROP changeable_tax_rule, DROP is_active');
$this->addSql('ALTER TABLE products_bundle__product_context CHANGE name name VARCHAR(255) NOT NULL, CHANGE changeable_tax_rule changeable_tax_rule TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
}
}