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
@@ -12,14 +12,14 @@ namespace Data.Migrations
{
migrationBuilder.AddColumn<int>(
name: "EventId",
table: "TimeSlots",
table: "Teams",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "Name",
table: "TimeSlots",
table: "Teams",
type: "TEXT",
nullable: false,
defaultValue: "");
@@ -47,12 +47,12 @@ namespace Data.Migrations
migrationBuilder.CreateIndex(
name: "IX_Teams_EventId",
table: "TimeSlots",
table: "Teams",
column: "EventId");
migrationBuilder.AddForeignKey(
name: "FK_Teams_Events_EventId",
table: "TimeSlots",
table: "Teams",
column: "EventId",
principalTable: "Events",
principalColumn: "Id",
@@ -64,19 +64,19 @@ namespace Data.Migrations
{
migrationBuilder.DropForeignKey(
name: "FK_Teams_Events_EventId",
table: "TimeSlots");
table: "Teams");
migrationBuilder.DropIndex(
name: "IX_Teams_EventId",
table: "TimeSlots");
table: "Teams");
migrationBuilder.DropColumn(
name: "EventId",
table: "TimeSlots");
table: "Teams");
migrationBuilder.DropColumn(
name: "Name",
table: "TimeSlots");
table: "Teams");
migrationBuilder.DropColumn(
name: "Email",