<?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 Version20230522102936 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('ALTER TABLE deal_wiki DROP FOREIGN KEY FK_94B0B9A9F60E2305');
$this->addSql('DROP INDEX UNIQ_94B0B9A9F60E2305 ON deal_wiki');
$this->addSql('ALTER TABLE deal_wiki DROP deal_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE deal_wiki ADD deal_id INT NOT NULL');
$this->addSql('ALTER TABLE deal_wiki ADD CONSTRAINT FK_94B0B9A9F60E2305 FOREIGN KEY (deal_id) REFERENCES deal (id)');
$this->addSql('CREATE UNIQUE INDEX UNIQ_94B0B9A9F60E2305 ON deal_wiki (deal_id)');
}
}