YD_SmartSports.Api/VOL.Core/Migrations/20240809135532_init029.cs

53 lines
1.7 KiB
C#
Raw Normal View History

2025-06-06 16:00:39 +08:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init029 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "WrongResults",
table: "N_SportsTestValue",
type: "float",
nullable: true,
comment: "错误成绩",
oldClrType: typeof(double),
oldType: "float",
oldComment: "错误成绩");
migrationBuilder.AlterColumn<float>(
name: "WrongResults",
table: "Ai_Result",
type: "real",
nullable: true,
oldClrType: typeof(float),
oldType: "real");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<double>(
name: "WrongResults",
table: "N_SportsTestValue",
type: "float",
nullable: false,
defaultValue: 0.0,
comment: "错误成绩",
oldClrType: typeof(double),
oldType: "float",
oldNullable: true,
oldComment: "错误成绩");
migrationBuilder.AlterColumn<float>(
name: "WrongResults",
table: "Ai_Result",
type: "real",
nullable: false,
defaultValue: 0f,
oldClrType: typeof(float),
oldType: "real",
oldNullable: true);
}
}
}