<?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 Version20240624071654 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('ALTER TABLE banner_area ADD sites_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE banner_area ADD CONSTRAINT FK_DF2D6C027838E496 FOREIGN KEY (sites_id) REFERENCES sites (id)');
$this->addSql('CREATE INDEX IDX_DF2D6C027838E496 ON banner_area (sites_id)');
}
public function down(Schema $schema): void
{
$this->addSql('DROP INDEX IDX_DF2D6C027838E496 ON banner_area');
$this->addSql('ALTER TABLE banner_area DROP sites_id');
}
}