42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Hushian.Persistence.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class changetbeg : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_EG_Expers_ExperID",
|
|
table: "EG");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_EG_Expers_ExperID",
|
|
table: "EG",
|
|
column: "ExperID",
|
|
principalTable: "Expers",
|
|
principalColumn: "ID");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_EG_Expers_ExperID",
|
|
table: "EG");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_EG_Expers_ExperID",
|
|
table: "EG",
|
|
column: "ExperID",
|
|
principalTable: "Expers",
|
|
principalColumn: "ID",
|
|
onDelete: ReferentialAction.Cascade);
|
|
}
|
|
}
|
|
}
|