From e22e0c9116505e9c9285516842dbdf56f32b7de0 Mon Sep 17 00:00:00 2001 From: Slendy Date: Sat, 5 Feb 2022 11:42:48 -0600 Subject: [PATCH] Fix migration --- .../Migrations/20220205132152_CommentRefactor.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ProjectLighthouse/Migrations/20220205132152_CommentRefactor.cs b/ProjectLighthouse/Migrations/20220205132152_CommentRefactor.cs index 4672cf4d..bd829b58 100644 --- a/ProjectLighthouse/Migrations/20220205132152_CommentRefactor.cs +++ b/ProjectLighthouse/Migrations/20220205132152_CommentRefactor.cs @@ -24,7 +24,7 @@ namespace ProjectLighthouse.Migrations migrationBuilder.RenameColumn( name: "TargetUserId", table: "Comments", - newName: "Type"); + newName: "TargetId"); migrationBuilder.AddColumn( name: "Deleted", @@ -48,7 +48,7 @@ namespace ProjectLighthouse.Migrations .Annotation("MySql:CharSet", "utf8mb4"); migrationBuilder.AddColumn( - name: "TargetId", + name: "Type", table: "Comments", type: "int", nullable: false, @@ -89,11 +89,11 @@ namespace ProjectLighthouse.Migrations table: "Comments"); migrationBuilder.DropColumn( - name: "TargetId", + name: "Type", table: "Comments"); migrationBuilder.RenameColumn( - name: "Type", + name: "TargetId", table: "Comments", newName: "TargetUserId");