<?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 Version20250819081025 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 sob_task ADD event_entity_id INT DEFAULT NULL COMMENT \'Internal ID\'');
$this->addSql('ALTER TABLE sob_task ADD CONSTRAINT FK_B64687647B04360 FOREIGN KEY (event_entity_id)
REFERENCES sob_event (id) ON DELETE CASCADE');
$this->addSql('CREATE INDEX IDX_B64687647B04360 ON sob_task (event_entity_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE sob_task DROP FOREIGN KEY FK_B64687647B04360');
$this->addSql('DROP INDEX IDX_B64687647B04360 ON sob_task');
$this->addSql('ALTER TABLE sob_task DROP event_entity_id');
}
}