using Microsoft.EntityFrameworkCore.Migrations;
using Email.Data;
#nullable disable
namespace Email.Data.Migrations
{
///
public partial class AddHtmlShellTemplates : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
// HTML email shell — opening tags (blue header, white card container)
migrationBuilder.InsertData(
table: "Templates",
columns: new[] { "Key", "Language", "Value", "Description" },
values: new object[] { "email.html-shell.start", "*", "\n\n
\n \n \n \n\n\n \n \n
\n", "Opening HTML wrapper for branded emails (blue header, white content area)" },
schema: MigrationConstants.SchemaName);
// HTML email shell — closing tags (footer)
migrationBuilder.InsertData(
table: "Templates",
columns: new[] { "Key", "Language", "Value", "Description" },
values: new object[] { "email.html-shell.end", "*", "
\n \n
\n\n\n", "Closing HTML wrapper for branded emails (footer and closing tags)" },
schema: MigrationConstants.SchemaName);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "Templates",
keyColumns: new[] { "Key", "Language" },
keyValues: new object[] { "email.html-shell.start", "*" },
schema: MigrationConstants.SchemaName);
migrationBuilder.DeleteData(
table: "Templates",
keyColumns: new[] { "Key", "Language" },
keyValues: new object[] { "email.html-shell.end", "*" },
schema: MigrationConstants.SchemaName);
}
}
}