forked from ddrilling/AsbCloudServer
40 lines
1.4 KiB
C#
40 lines
1.4 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace AsbCloudDb.Migrations
|
|||
|
{
|
|||
|
public partial class AfterMergeNothing : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddForeignKey(
|
|||
|
name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
|||
|
table: "t_detected_operation",
|
|||
|
column: "id_telemetry",
|
|||
|
principalTable: "t_telemetry",
|
|||
|
principalColumn: "id",
|
|||
|
onDelete: ReferentialAction.Cascade);
|
|||
|
|
|||
|
migrationBuilder.AddForeignKey(
|
|||
|
name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
|||
|
table: "t_detected_operation",
|
|||
|
column: "id_category",
|
|||
|
principalTable: "t_well_operation_category",
|
|||
|
principalColumn: "id",
|
|||
|
onDelete: ReferentialAction.Cascade);
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropForeignKey(
|
|||
|
name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
|||
|
table: "t_detected_operation");
|
|||
|
|
|||
|
migrationBuilder.DropForeignKey(
|
|||
|
name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
|||
|
table: "t_detected_operation");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|