<?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 Version20260220200606 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 message_automation_log ADD event ENUM(\'prospect.created\', \'lead.created\', \'opportunity.created\', \'customer.created\') DEFAULT NULL COMMENT \'(DC2Type:MessageAutomationEventType)\'');
$this->addSql('UPDATE message_automation_log SET event = \'prospect.created\' WHERE entity_class = \'App\\\\Entity\\\\Lead\\\\Prospect\'');
$this->addSql('UPDATE message_automation_log SET event = \'lead.created\' WHERE entity_class = \'App\\\\Entity\\\\Lead\\\\Lead\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE message_automation_log DROP event');
}
}