<?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 Version20260217195819 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 lead_prospect CHANGE name name VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE notification CHANGE command command ENUM(\'created_object\', \'created_comment\', \'assigned_customer\', \'assigned_upsell_request\', \'assigned_lead\', \'assigned_event\', \'assigned_issue\', \'assigned_feed\', \'event_poked\', \'event_reminder\', \'event_is_due\', \'upsell_request_poked\', \'project_poked\', \'message_sent\', \'qa_signed\', \'report_exported\', \'lead_imported\') NOT NULL COMMENT \'(DC2Type:NotificationCommandType)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE lead_prospect CHANGE name name VARCHAR(255) NOT NULL');
$this->addSql('DELETE FROM notification WHERE command = \'lead_imported\'');
$this->addSql('ALTER TABLE notification CHANGE command command ENUM(\'created_object\', \'created_comment\', \'assigned_customer\', \'assigned_upsell_request\', \'assigned_lead\', \'assigned_event\', \'assigned_issue\', \'assigned_feed\', \'event_poked\', \'event_reminder\', \'event_is_due\', \'upsell_request_poked\', \'project_poked\', \'message_sent\', \'qa_signed\', \'report_exported\') NOT NULL COMMENT \'(DC2Type:NotificationCommandType)\'');
}
}