<?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 Version20260310053142 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
// Template 1004: 注文キャンセルメール
$exists1004 = $this->connection->fetchOne("SELECT count(*) FROM dtb_mail_template WHERE id = 1004");
if ($exists1004 == 0) {
$this->addSql("
INSERT INTO dtb_mail_template (id, creator_id, name, file_name, mail_subject, footer, create_date, update_date, discriminator_type)
VALUES (1004, null, '出荷通知メール(英語)', 'Mail/order_shipped.twig', 'Your order has been shipped today', '', NOW(), NOW(), 'mailtemplate');");
}
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql("DELETE FROM dtb_mail_template WHERE file_name IN ('Mail/order_shipped.twig');");
}
}