<?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 Version20220330143520 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE TABLE packaging_type_pouch_option (packaging_type_id INT NOT NULL, pouch_option_id INT NOT NULL, INDEX IDX_17AD29B42DE8FC4E (packaging_type_id), INDEX IDX_17AD29B410143082 (pouch_option_id), PRIMARY KEY(packaging_type_id, pouch_option_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE packaging_type_pouch_option ADD CONSTRAINT FK_17AD29B42DE8FC4E FOREIGN KEY (packaging_type_id) REFERENCES packaging_type (id) ON DELETE CASCADE');
$this->addSql('ALTER TABLE packaging_type_pouch_option ADD CONSTRAINT FK_17AD29B410143082 FOREIGN KEY (pouch_option_id) REFERENCES pouch_option (id) ON DELETE CASCADE');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE packaging_type_pouch_option');
}
}