53 lines
1.7 KiB
C#
53 lines
1.7 KiB
C#
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);
|
|
}
|
|
}
|
|
} |