@@ -1,49 +1,49 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IM_API.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updategroupgroupiduserid : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_group_request_UserId",
|
||||
table: "group_request",
|
||||
column: "UserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request",
|
||||
column: "UserId",
|
||||
principalTable: "users",
|
||||
principalColumn: "ID");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_group_request_UserId",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request",
|
||||
column: "GroupId",
|
||||
principalTable: "users",
|
||||
principalColumn: "ID");
|
||||
}
|
||||
}
|
||||
}
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace IM_API.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updategroupgroupiduserid : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_group_request_UserId",
|
||||
table: "group_request",
|
||||
column: "UserId");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request",
|
||||
column: "UserId",
|
||||
principalTable: "users",
|
||||
principalColumn: "ID");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.DropIndex(
|
||||
name: "IX_group_request_UserId",
|
||||
table: "group_request");
|
||||
|
||||
migrationBuilder.AddForeignKey(
|
||||
name: "group_request_ibfk_2",
|
||||
table: "group_request",
|
||||
column: "GroupId",
|
||||
principalTable: "users",
|
||||
principalColumn: "ID");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user