Add migration to rename EmailTemplates table to Templates
This migration renames the EmailTemplates table to Templates in the email schema. The migration was scaffolded by EF Core with manual RenameTable commands added. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Email.Data.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RenameEmailTemplatesToTemplates : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameTable(
|
||||
name: "EmailTemplates",
|
||||
schema: MigrationConstants.SchemaName,
|
||||
newName: "Templates");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameTable(
|
||||
name: "Templates",
|
||||
schema: MigrationConstants.SchemaName,
|
||||
newName: "EmailTemplates");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user