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