Files
Bewerbungs-Portfolio/BewerbungWebseite/Migrations/20260909095802_AddPageContent.cs
T
2026-09-11 13:29:15 +02:00

36 lines
1.1 KiB
C#

using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BewerbungsSeite.Migrations
{
/// <inheritdoc />
public partial class AddPageContent : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "PageContent",
columns: table => new
{
Id = table.Column<int>(type: "int", nullable: false),
Content = table.Column<byte[]>(type: "varbinary(max)", nullable: false),
UpdatedAt = table.Column<DateTime>(type: "datetime2", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_PageContent", x => x.Id);
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "PageContent");
}
}
}