<?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 Version20251021155647 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 market_rumor ADD charterer2_id CHAR(36) DEFAULT NULL COMMENT \'(DC2Type:uuid)\', CHANGE broker broker VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE market_rumor ADD CONSTRAINT FK_CE9E9462A74F0AF3 FOREIGN KEY (charterer2_id) REFERENCES charterer (id)');
$this->addSql('CREATE INDEX IDX_CE9E9462A74F0AF3 ON market_rumor (charterer2_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE market_rumor DROP FOREIGN KEY FK_CE9E9462A74F0AF3');
$this->addSql('DROP INDEX IDX_CE9E9462A74F0AF3 ON market_rumor');
$this->addSql('ALTER TABLE market_rumor DROP charterer2_id, CHANGE broker broker VARCHAR(191) DEFAULT NULL');
}
}