<?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 Version20260305122911 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_configuration ADD commercial_user_id VARCHAR(36) DEFAULT NULL');
$this->addSql('ALTER TABLE channel_configuration ADD CONSTRAINT FK_47F4663C5FF8824 FOREIGN KEY (commercial_user_id) REFERENCES account_users (id) ON DELETE SET NULL');
$this->addSql('CREATE INDEX IDX_47F4663C5FF8824 ON channel_configuration (commercial_user_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE channel_configuration DROP FOREIGN KEY FK_47F4663C5FF8824');
$this->addSql('DROP INDEX IDX_47F4663C5FF8824 ON channel_configuration');
$this->addSql('ALTER TABLE channel_configuration DROP commercial_user_id');
}
}