31 lines
941 B
C#
31 lines
941 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace BrokerApiServer.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class SchemaChanges_160851 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_PlanetExchangeOrder_PlanetInfo",
|
|
table: "planet_item_exchange_order",
|
|
column: "planet_id",
|
|
principalTable: "planet_info",
|
|
principalColumn: "planet_id",
|
|
onDelete: ReferentialAction.Restrict);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_PlanetExchangeOrder_PlanetInfo",
|
|
table: "planet_item_exchange_order");
|
|
}
|
|
}
|
|
}
|