dramaling-vocab-learning/backend/DramaLing.Api/Migrations/20250926002451_RemoveRedund...

41 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DramaLing.Api.Migrations
{
/// <inheritdoc />
public partial class RemoveRedundantLevelFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "UserLevel",
table: "flashcards");
migrationBuilder.DropColumn(
name: "WordLevel",
table: "flashcards");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "UserLevel",
table: "flashcards",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "WordLevel",
table: "flashcards",
type: "INTEGER",
nullable: false,
defaultValue: 0);
}
}
}