<?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 Version20240102050719 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 media_kit_folder DROP FOREIGN KEY FK_908FC0C08E622499');
$this->addSql('DROP INDEX IDX_908FC0C08E622499 ON media_kit_folder');
$this->addSql('ALTER TABLE media_kit_folder ADD type VARCHAR(255) NOT NULL, DROP media_kit_id_id');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE media_kit_folder ADD media_kit_id_id INT DEFAULT NULL, DROP type');
$this->addSql('ALTER TABLE media_kit_folder ADD CONSTRAINT FK_908FC0C08E622499 FOREIGN KEY (media_kit_id_id) REFERENCES media_kit (id) ON UPDATE NO ACTION ON DELETE NO ACTION');
$this->addSql('CREATE INDEX IDX_908FC0C08E622499 ON media_kit_folder (media_kit_id_id)');
}
}