using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace VOL.Core.Migrations { public partial class init031 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( 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( 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"); } } }