using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace TaikoLocalServer.Migrations { /// public partial class FixNavigation : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropForeignKey( name: "FK_DanStageScoreData_DanScoreData_DanScoreDatumBaid_DanScoreDatumDanId", table: "DanStageScoreData"); migrationBuilder.DropIndex( name: "IX_DanStageScoreData_DanScoreDatumBaid_DanScoreDatumDanId", table: "DanStageScoreData"); migrationBuilder.DropColumn( name: "DanScoreDatumBaid", table: "DanStageScoreData"); migrationBuilder.DropColumn( name: "DanScoreDatumDanId", table: "DanStageScoreData"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DanScoreDatumBaid", table: "DanStageScoreData", type: "INTEGER", nullable: true); migrationBuilder.AddColumn( name: "DanScoreDatumDanId", table: "DanStageScoreData", type: "INTEGER", nullable: true); migrationBuilder.CreateIndex( name: "IX_DanStageScoreData_DanScoreDatumBaid_DanScoreDatumDanId", table: "DanStageScoreData", columns: new[] { "DanScoreDatumBaid", "DanScoreDatumDanId" }); migrationBuilder.AddForeignKey( name: "FK_DanStageScoreData_DanScoreData_DanScoreDatumBaid_DanScoreDatumDanId", table: "DanStageScoreData", columns: new[] { "DanScoreDatumBaid", "DanScoreDatumDanId" }, principalTable: "DanScoreData", principalColumns: new[] { "Baid", "DanId" }); } } }