using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BankYouBankruptDatabaseImplement.Migrations
{
///
public partial class SmallFix : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_MoneyTransfers_CreditingId",
table: "MoneyTransfers",
column: "CreditingId");
migrationBuilder.AddForeignKey(
name: "FK_MoneyTransfers_Creditings_CreditingId",
table: "MoneyTransfers",
column: "CreditingId",
principalTable: "Creditings",
principalColumn: "Id",
onDelete: ReferentialAction.NoAction);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_MoneyTransfers_Creditings_CreditingId",
table: "MoneyTransfers");
migrationBuilder.DropIndex(
name: "IX_MoneyTransfers_CreditingId",
table: "MoneyTransfers");
}
}
}