38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|
|||
|
|
#nullable disable
|
|||
|
|
|
|||
|
|
namespace wtmProject.DataAccess.Migrations
|
|||
|
|
{
|
|||
|
|
public partial class hmr2024032704 : Migration
|
|||
|
|
{
|
|||
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropForeignKey(
|
|||
|
|
name: "FK_FrameworkUsers_FrameworkUserGroups_GroupId",
|
|||
|
|
table: "FrameworkUsers");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddForeignKey(
|
|||
|
|
name: "FK_FrameworkUsers_FrameworkGroups_GroupId",
|
|||
|
|
table: "FrameworkUsers",
|
|||
|
|
column: "GroupId",
|
|||
|
|
principalTable: "FrameworkGroups",
|
|||
|
|
principalColumn: "ID");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
|
{
|
|||
|
|
migrationBuilder.DropForeignKey(
|
|||
|
|
name: "FK_FrameworkUsers_FrameworkGroups_GroupId",
|
|||
|
|
table: "FrameworkUsers");
|
|||
|
|
|
|||
|
|
migrationBuilder.AddForeignKey(
|
|||
|
|
name: "FK_FrameworkUsers_FrameworkUserGroups_GroupId",
|
|||
|
|
table: "FrameworkUsers",
|
|||
|
|
column: "GroupId",
|
|||
|
|
principalTable: "FrameworkUserGroups",
|
|||
|
|
principalColumn: "ID");
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|