Roll back data migration issue with "TimeSlots" replacing "Teams"

This commit is contained in:
2025-09-26 10:13:00 -04:00
parent 1e2e2724cf
commit 1ea096469b
6 changed files with 25 additions and 25 deletions
@@ -54,7 +54,7 @@ namespace Data.Migrations
});
migrationBuilder.CreateTable(
name: "TimeSlots",
name: "Teams",
columns: table => new
{
Id = table.Column<int>(type: "INTEGER", nullable: false)
@@ -91,7 +91,7 @@ namespace Data.Migrations
table.ForeignKey(
name: "FK_StudentTeam_Teams_TeamsId",
column: x => x.TeamsId,
principalTable: "TimeSlots",
principalTable: "Teams",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
});
@@ -108,7 +108,7 @@ namespace Data.Migrations
migrationBuilder.CreateIndex(
name: "IX_Teams_CaptainId",
table: "TimeSlots",
table: "Teams",
column: "CaptainId");
}
@@ -122,7 +122,7 @@ namespace Data.Migrations
name: "StudentTeam");
migrationBuilder.DropTable(
name: "TimeSlots");
name: "Teams");
migrationBuilder.DropTable(
name: "Students");