<?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 Version20260610091643 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 channel_user_data_abstract_activity DROP FOREIGN KEY FK_D7288F45B03A8386');
$this->addSql('ALTER TABLE channel_user_data_abstract_activity CHANGE created_by_id created_by_id VARCHAR(36) DEFAULT NULL');
$this->addSql('ALTER TABLE channel_user_data_abstract_activity ADD CONSTRAINT FK_D7288F45B03A8386 FOREIGN KEY (created_by_id) REFERENCES account_users (id) ON DELETE SET NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE channel_user_data_abstract_activity DROP FOREIGN KEY FK_D7288F45B03A8386');
$this->addSql('ALTER TABLE channel_user_data_abstract_activity CHANGE created_by_id created_by_id VARCHAR(36) NOT NULL');
$this->addSql('ALTER TABLE channel_user_data_abstract_activity ADD CONSTRAINT FK_D7288F45B03A8386 FOREIGN KEY (created_by_id) REFERENCES account_users (id) ON DELETE CASCADE');
}
}