<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20250715000004 extends AbstractMigration
{
public function getDescription(): string
{
return 'Fix test notification template type with correct backslashes';
}
public function up(Schema $schema): void
{
// Update the existing template to use correct class name without double backslashes
$this->addSql("UPDATE abap_notification_template SET type = 'App\\Notification\\Type\\TestNotification' WHERE type = 'App\\\\Notification\\\\Type\\\\TestNotification'");
}
public function down(Schema $schema): void
{
// Revert back to double backslashes
$this->addSql("UPDATE abap_notification_template SET type = 'App\\\\Notification\\\\Type\\\\TestNotification' WHERE type = 'App\\Notification\\Type\\TestNotification'");
}
}