<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250715000005 extends AbstractMigration
{
public function getDescription(): string
{
return 'Fix test notification template method to use full class name';
}
public function up(Schema $schema): void
{
// Update the existing template to use full class name for method
$this->addSql("UPDATE abap_notification_template SET method = 'Abap\\NotifierBundle\\Method\\EmailNotificationMethod' WHERE type = 'App\\Notification\\Type\\TestNotification'");
}
public function down(Schema $schema): void
{
// Revert back to simple method name
$this->addSql("UPDATE abap_notification_template SET method = 'email' WHERE type = 'App\\Notification\\Type\\TestNotification'");
}
}