51 lines
1.4 KiB
C#
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: "当前年份");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|