<?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 Version20250323112922 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$sql = <<<SQL
INSERT INTO `dtb_mail_template` (`id`, `creator_id`, `name`, `file_name`, `mail_subject`, `create_date`, `update_date`, `discriminator_type`) VALUES
('16', NULL, 'データ作成開始の通知', 'Mail/order_data_create.twig', 'データ作成開始のご連絡', NOW(), NOW(), 'mailtemplate'),
('17', NULL, 'デザイン承認依頼メール', 'Mail/order_design_confirm.twig', 'デザインのご確認', NOW(), NOW(), 'mailtemplate'),
('18', NULL, '納期予定メール', 'Mail/order_delivery_schedule.twig', 'お届け予定のご連絡', NOW(), NOW(), 'mailtemplate')
SQL;
$this->addSql($sql);
}
public function down(Schema $schema): void
{
$this->addSql('DELETE FROM dtb_mail_template WHERE id IN(16, 17, 18)');
}
}