<?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 Version20230119150539 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 advertisement ADD banner_bottom_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE advertisement ADD CONSTRAINT FK_C95F6AEEFC882FA8 FOREIGN KEY (banner_bottom_id) REFERENCES banner_advertisement (id)');
$this->addSql('CREATE INDEX IDX_C95F6AEEFC882FA8 ON advertisement (banner_bottom_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE advertisement DROP FOREIGN KEY FK_C95F6AEEFC882FA8');
$this->addSql('DROP INDEX IDX_C95F6AEEFC882FA8 ON advertisement');
$this->addSql('ALTER TABLE advertisement DROP banner_bottom_id');
}
}