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