| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- namespace Infrastructure.Migrations.AppDb
- {
- /// <inheritdoc />
- public partial class SeedEmailTemplateDefaults : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.Sql(@"
- UPDATE Config SET
- EmailTemplate_RegisterEmailFormTitle = N'회원가입 이메일 인증번호'
- WHERE EmailTemplate_RegisterEmailFormTitle IS NULL;
- UPDATE Config SET
- EmailTemplate_RegisterEmailFormContent = N'<p>회원가입 이메일 인증번호입니다.</p><p><strong>{Code}</strong></p><p>이 코드는 5분간 유효합니다.</p>'
- WHERE EmailTemplate_RegisterEmailFormContent IS NULL;
- UPDATE Config SET
- EmailTemplate_RegistrationEmailFormTitle = N'회원가입을 환영합니다'
- WHERE EmailTemplate_RegistrationEmailFormTitle IS NULL;
- UPDATE Config SET
- EmailTemplate_RegistrationEmailFormContent = N'<p>안녕하세요 {Nickname}님, 회원가입이 완료되었습니다.</p><p>서비스를 이용해 주셔서 감사합니다.</p>'
- WHERE EmailTemplate_RegistrationEmailFormContent IS NULL;
- UPDATE Config SET
- EmailTemplate_ResetPasswordEmailFormTitle = N'비밀번호 재설정 인증번호'
- WHERE EmailTemplate_ResetPasswordEmailFormTitle IS NULL;
- UPDATE Config SET
- EmailTemplate_ResetPasswordEmailFormContent = N'<p>비밀번호 재설정 인증번호입니다.</p><p><strong>{Code}</strong></p><p>이 코드는 10분간 유효합니다.</p>'
- WHERE EmailTemplate_ResetPasswordEmailFormContent IS NULL;
- UPDATE Config SET
- EmailTemplate_EmailVerifyFormTitle = N'이메일 인증'
- WHERE EmailTemplate_EmailVerifyFormTitle IS NULL;
- UPDATE Config SET
- EmailTemplate_EmailVerifyFormContent = N'<p>아래 링크를 클릭하여 이메일 인증을 완료해주세요.</p><p><a href=""{Url}"">{Url}</a></p><p>이 링크는 24시간 동안 유효합니다.</p>'
- WHERE EmailTemplate_EmailVerifyFormContent IS NULL;
- ");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- }
- }
- }
|