<?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 Version20230906122402 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_category DROP heading_color, DROP url_text');
$this->addSql('ALTER TABLE info_section_entry DROP FOREIGN KEY FK_F4E9118876EFF48D');
$this->addSql('DROP INDEX IDX_F4E9118876EFF48D ON info_section_entry');
$this->addSql('ALTER TABLE info_section_entry DROP entry_picture_id, DROP heading_color, DROP description, DROP design');
$this->addSql('ALTER TABLE info_section_subcategory DROP anchor');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE info_section_category ADD heading_color VARCHAR(30) DEFAULT NULL, ADD url_text VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE info_section_subcategory ADD anchor VARCHAR(2048) DEFAULT NULL');
$this->addSql('ALTER TABLE info_section_entry ADD entry_picture_id INT DEFAULT NULL, ADD heading_color VARCHAR(30) DEFAULT NULL, ADD description MEDIUMTEXT DEFAULT NULL, ADD design INT NOT NULL COMMENT \'1=self, 2=blank\'');
$this->addSql('ALTER TABLE info_section_entry ADD CONSTRAINT FK_F4E9118876EFF48D FOREIGN KEY (entry_picture_id) REFERENCES media__media (id)');
$this->addSql('CREATE INDEX IDX_F4E9118876EFF48D ON info_section_entry (entry_picture_id)');
}
}