61 lines
1.8 KiB
C#
61 lines
1.8 KiB
C#
![]() |
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace YD_WeChatApplet.Api.Migrations
|
|||
|
{
|
|||
|
public partial class _2025514v1 : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "PersonalGoalType",
|
|||
|
table: "WCA_PersonalGoalResult",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "目标类型");
|
|||
|
|
|||
|
migrationBuilder.AddColumn<int>(
|
|||
|
name: "Score",
|
|||
|
table: "WCA_PersonalGoalResult",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "得分");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "Status",
|
|||
|
table: "WCA_ExerciseData",
|
|||
|
type: "int",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0,
|
|||
|
comment: "状态",
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "状态");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "PersonalGoalType",
|
|||
|
table: "WCA_PersonalGoalResult");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Score",
|
|||
|
table: "WCA_PersonalGoalResult");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<int>(
|
|||
|
name: "Status",
|
|||
|
table: "WCA_ExerciseData",
|
|||
|
type: "int",
|
|||
|
nullable: true,
|
|||
|
comment: "状态",
|
|||
|
oldClrType: typeof(int),
|
|||
|
oldType: "int",
|
|||
|
oldComment: "状态");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|