mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-24 14:11:29 +00:00
Fix migration
This commit is contained in:
parent
75caac3b9b
commit
e22e0c9116
1 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ namespace ProjectLighthouse.Migrations
|
|||
migrationBuilder.RenameColumn(
|
||||
name: "TargetUserId",
|
||||
table: "Comments",
|
||||
newName: "Type");
|
||||
newName: "TargetId");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "Deleted",
|
||||
|
@ -48,7 +48,7 @@ namespace ProjectLighthouse.Migrations
|
|||
.Annotation("MySql:CharSet", "utf8mb4");
|
||||
|
||||
migrationBuilder.AddColumn<int>(
|
||||
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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue