40 lines
1.2 KiB
C#
40 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BankYouBankruptDatabaseImplement.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class SmallFix : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
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);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_MoneyTransfers_Creditings_CreditingId",
|
|
table: "MoneyTransfers");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_MoneyTransfers_CreditingId",
|
|
table: "MoneyTransfers");
|
|
}
|
|
}
|
|
}
|