fix UserHouseReference Migration
This commit is contained in:
@@ -6,20 +6,6 @@ namespace ReallifeGamemode.Migrations
|
|||||||
{
|
{
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_Houses_UserId",
|
|
||||||
table: "Houses");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_Users_HouseId",
|
|
||||||
table: "Users",
|
|
||||||
column: "HouseId");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
|
||||||
name: "IX_Houses_UserId",
|
|
||||||
table: "Houses",
|
|
||||||
column: "UserId");
|
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
migrationBuilder.AddForeignKey(
|
||||||
name: "FK_Users_Houses_HouseId",
|
name: "FK_Users_Houses_HouseId",
|
||||||
table: "Users",
|
table: "Users",
|
||||||
@@ -31,18 +17,6 @@ namespace ReallifeGamemode.Migrations
|
|||||||
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.DropForeignKey(
|
|
||||||
name: "FK_Users_Houses_HouseId",
|
|
||||||
table: "Users");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_Users_HouseId",
|
|
||||||
table: "Users");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_Houses_UserId",
|
|
||||||
table: "Houses");
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_Houses_UserId",
|
name: "IX_Houses_UserId",
|
||||||
table: "Houses",
|
table: "Houses",
|
||||||
|
|||||||
Reference in New Issue
Block a user