<?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 Version20211209122321 extends AbstractMigration
{
public function getDescription(): string
{
return 'Change relation between demand_tree and tree table to have many demand_tree by tree';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE demand_tree DROP INDEX UNIQ_69FCFE9A78B64A2, ADD INDEX IDX_69FCFE9A78B64A2 (tree_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE demand_tree DROP INDEX IDX_69FCFE9A78B64A2, ADD UNIQUE INDEX UNIQ_69FCFE9A78B64A2 (tree_id)');
}
}