using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class _20250306v1 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "PassingRate", table: "XW_SportsTestData", type: "float", nullable: true, comment: "及格率", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "及格率"); migrationBuilder.AlterColumn( name: "MaleScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生总分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生总分数"); migrationBuilder.AlterColumn( name: "MaleMinScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生最小分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生最小分数"); migrationBuilder.AlterColumn( name: "MaleMinImproveScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生最小分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生最小分数"); migrationBuilder.AlterColumn( name: "MaleMedianCount", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生中位数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生中位数"); migrationBuilder.AlterColumn( name: "MaleMaxScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生最大分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生最大分数"); migrationBuilder.AlterColumn( name: "MaleMaxImproveScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生最大分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生最大分数"); migrationBuilder.AlterColumn( name: "MaleCount", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生总成绩", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生总成绩"); migrationBuilder.AlterColumn( name: "MaleAvgScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生平均分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生平均分数"); migrationBuilder.AlterColumn( name: "MaleAvgImproveScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生平均分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生平均分数"); migrationBuilder.AlterColumn( name: "MaleAvgCount", table: "XW_SportsTestData", type: "float", nullable: true, comment: "男生平均个数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "男生平均个数"); migrationBuilder.AlterColumn( name: "FemaleScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生总分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生总分数"); migrationBuilder.AlterColumn( name: "FemaleMinScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生最小分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生最小分数"); migrationBuilder.AlterColumn( name: "FemaleMinImproveScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生最小分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生最小分数"); migrationBuilder.AlterColumn( name: "FemaleMedianCount", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生中位数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生中位数"); migrationBuilder.AlterColumn( name: "FemaleMaxScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生最大分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生最大分数"); migrationBuilder.AlterColumn( name: "FemaleMaxImproveScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生最大分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生最大分数"); migrationBuilder.AlterColumn( name: "FemaleCount", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生总成绩", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生总成绩"); migrationBuilder.AlterColumn( name: "FemaleAvgScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生平均分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生平均分数"); migrationBuilder.AlterColumn( name: "FemaleAvgImproveScore", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生平均分数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生平均分数"); migrationBuilder.AlterColumn( name: "FemaleAvgCount", table: "XW_SportsTestData", type: "float", nullable: true, comment: "女生平均个数", oldClrType: typeof(decimal), oldType: "decimal(18,2)", oldNullable: true, oldComment: "女生平均个数"); migrationBuilder.AddColumn( name: "Value", table: "S_HomeWorkStudents", type: "int", nullable: false, defaultValue: 0, comment: "学生作业状态"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Value", table: "S_HomeWorkStudents"); migrationBuilder.AlterColumn( name: "PassingRate", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "及格率", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "及格率"); migrationBuilder.AlterColumn( name: "MaleScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生总分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生总分数"); migrationBuilder.AlterColumn( name: "MaleMinScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生最小分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生最小分数"); migrationBuilder.AlterColumn( name: "MaleMinImproveScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生最小分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生最小分数"); migrationBuilder.AlterColumn( name: "MaleMedianCount", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生中位数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生中位数"); migrationBuilder.AlterColumn( name: "MaleMaxScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生最大分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生最大分数"); migrationBuilder.AlterColumn( name: "MaleMaxImproveScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生最大分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生最大分数"); migrationBuilder.AlterColumn( name: "MaleCount", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生总成绩", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生总成绩"); migrationBuilder.AlterColumn( name: "MaleAvgScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生平均分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生平均分数"); migrationBuilder.AlterColumn( name: "MaleAvgImproveScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生平均分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生平均分数"); migrationBuilder.AlterColumn( name: "MaleAvgCount", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "男生平均个数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "男生平均个数"); migrationBuilder.AlterColumn( name: "FemaleScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生总分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生总分数"); migrationBuilder.AlterColumn( name: "FemaleMinScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生最小分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生最小分数"); migrationBuilder.AlterColumn( name: "FemaleMinImproveScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生最小分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生最小分数"); migrationBuilder.AlterColumn( name: "FemaleMedianCount", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生中位数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生中位数"); migrationBuilder.AlterColumn( name: "FemaleMaxScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生最大分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生最大分数"); migrationBuilder.AlterColumn( name: "FemaleMaxImproveScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生最大分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生最大分数"); migrationBuilder.AlterColumn( name: "FemaleCount", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生总成绩", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生总成绩"); migrationBuilder.AlterColumn( name: "FemaleAvgScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生平均分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生平均分数"); migrationBuilder.AlterColumn( name: "FemaleAvgImproveScore", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生平均分数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生平均分数"); migrationBuilder.AlterColumn( name: "FemaleAvgCount", table: "XW_SportsTestData", type: "decimal(18,2)", nullable: true, comment: "女生平均个数", oldClrType: typeof(double), oldType: "float", oldNullable: true, oldComment: "女生平均个数"); } } }