YD_SmartSports.Api/VOL.Core/Migrations/20250306060205_20250306v1.cs
2025-06-06 16:55:14 +08:00

490 lines
18 KiB
C#

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