YD_SmartSports.Api/VOL.Core/Migrations/20240814072941_init031.cs
2025-06-06 16:00:39 +08:00

45 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VOL.Core.Migrations
{
public partial class init031 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "Bmi",
table: "I_SportsTestData",
type: "float",
nullable: true,
comment: "Bmi");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_I_SportsTestData_I_SportsTest_SportsTestId",
table: "I_SportsTestData");
migrationBuilder.DropColumn(
name: "Bmi",
table: "I_SportsTestData");
migrationBuilder.AlterColumn<int>(
name: "SportsTestId",
table: "I_SportsTestData",
type: "int",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AddForeignKey(
name: "FK_I_SportsTestData_I_SportsTest_SportsTestId",
table: "I_SportsTestData",
column: "SportsTestId",
principalTable: "I_SportsTest",
principalColumn: "Id");
}
}
}