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