<?php
declare(strict_types=1);
namespace Application\Migrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20200615125609 extends AbstractMigration
{
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE `substance_definition` DROP COLUMN `type`');
$this->addSql('ALTER TABLE member_order_line DROP FOREIGN KEY FK_77AB9008611C0C56');
$this->addSql('ALTER TABLE member_order_line DROP FOREIGN KEY FK_77AB90086DEC420C');
$this->addSql('ALTER TABLE member_order_line DROP FOREIGN KEY FK_77AB9008C707E018');
}
public function down(Schema $schema): void
{
$this->addSql('ALTER TABLE `substance_definition` ADD COLUMN `type` VARCHAR(255) ');
$this->addSql('ALTER TABLE member_order_line ADD CONSTRAINT FK_77AB9008611C0C56 FOREIGN KEY (dossier_id) REFERENCES member_order_line (id)');
$this->addSql('ALTER TABLE member_order_line ADD CONSTRAINT FK_77AB90086DEC420C FOREIGN KEY (legal_entity_id) REFERENCES member_order_line (id)');
$this->addSql('ALTER TABLE member_order_line ADD CONSTRAINT FK_77AB9008C707E018 FOREIGN KEY (substance_id) REFERENCES member_order_line (id)');
}
}