Files
emall-api/FutureMailAPI/Migrations/20251015003104_AddUserPreferences.cs

41 lines
1.1 KiB
C#
Raw Permalink Normal View History

2025-10-16 09:56:36 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FutureMailAPI.Migrations
{
/// <inheritdoc />
public partial class AddUserPreferences : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "PreferredBackground",
table: "Users",
type: "TEXT",
maxLength: 50,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "PreferredScene",
table: "Users",
type: "TEXT",
maxLength: 20,
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "PreferredBackground",
table: "Users");
migrationBuilder.DropColumn(
name: "PreferredScene",
table: "Users");
}
}
}