YD_SmartSports.Api/VOL.Core/Migrations/20241210014850_init102.cs
2025-06-06 16:00:39 +08:00

51 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init102 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ActivitiesId",
table: "Ai_FastJumpRopeData");
migrationBuilder.DropColumn(
name: "Semester",
table: "Ai_FastJumpRopeData");
migrationBuilder.DropColumn(
name: "Year",
table: "Ai_FastJumpRopeData");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "ActivitiesId",
table: "Ai_FastJumpRopeData",
type: "int",
nullable: true,
comment: "Ai赛场Id");
migrationBuilder.AddColumn<int>(
name: "Semester",
table: "Ai_FastJumpRopeData",
type: "int)",
nullable: false,
defaultValue: 0,
comment: "学期");
migrationBuilder.AddColumn<int>(
name: "Year",
table: "Ai_FastJumpRopeData",
type: "int)",
nullable: false,
defaultValue: 0,
comment: "当前年份");
}
}
}