<?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 Version20230204150702 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 equipment_issue_message RENAME INDEX idx_484f8b5db154y56 TO IDX_735090BC6EB921AA');
$this->addSql('ALTER TABLE equipment_issue_message RENAME INDEX idx_484f8b5a78jm312 TO IDX_735090BCA76ED395');
$this->addSql('ALTER TABLE media_object_issue DROP FOREIGN KEY FK_FF7FDD501377242D');
$this->addSql('DROP INDEX IDX_FF7FDD501377242D ON media_object_issue');
$this->addSql('ALTER TABLE media_object_issue CHANGE equipmentt_issue_message_id equipment_issue_message_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE media_object_issue ADD CONSTRAINT FK_FF7FDD50B02F19D9 FOREIGN KEY (equipment_issue_message_id) REFERENCES equipment_issue_message (id)');
$this->addSql('CREATE INDEX IDX_FF7FDD50B02F19D9 ON media_object_issue (equipment_issue_message_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE equipment_issue_message RENAME INDEX idx_735090bc6eb921aa TO IDX_484F8B5DB154Y56');
$this->addSql('ALTER TABLE equipment_issue_message RENAME INDEX idx_735090bca76ed395 TO IDX_484F8B5A78JM312');
$this->addSql('ALTER TABLE media_object_issue DROP FOREIGN KEY FK_FF7FDD50B02F19D9');
$this->addSql('DROP INDEX IDX_FF7FDD50B02F19D9 ON media_object_issue');
$this->addSql('ALTER TABLE media_object_issue CHANGE equipment_issue_message_id equipmentt_issue_message_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE media_object_issue ADD CONSTRAINT FK_FF7FDD501377242D FOREIGN KEY (equipmentt_issue_message_id) REFERENCES equipment_issue_message (id)');
$this->addSql('CREATE INDEX IDX_FF7FDD501377242D ON media_object_issue (equipmentt_issue_message_id)');
}
}