<?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 Version20240620071334 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 trophy_count DROP FOREIGN KEY FK_EE452C551622AE51');
$this->addSql('DROP INDEX IDX_EE452C551622AE51 ON trophy_count');
$this->addSql('ALTER TABLE trophy_count CHANGE trophy_type_id trophy_item_type_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE trophy_count ADD CONSTRAINT FK_EE452C55BFA3063F FOREIGN KEY (trophy_item_type_id) REFERENCES trophy_item_type (id)');
$this->addSql('CREATE INDEX IDX_EE452C55BFA3063F ON trophy_count (trophy_item_type_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE trophy_count DROP FOREIGN KEY FK_EE452C55BFA3063F');
$this->addSql('DROP INDEX IDX_EE452C55BFA3063F ON trophy_count');
$this->addSql('ALTER TABLE trophy_count CHANGE trophy_item_type_id trophy_type_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE trophy_count ADD CONSTRAINT FK_EE452C551622AE51 FOREIGN KEY (trophy_type_id) REFERENCES trophy_item_type (id)');
$this->addSql('CREATE INDEX IDX_EE452C551622AE51 ON trophy_count (trophy_type_id)');
}
}