2022-05-05 10:19:39 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
|
|
|
{
|
|
|
|
|
public partial class AfterMergeNothing : Migration
|
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
2022-05-05 11:46:18 +05:00
|
|
|
|
//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);
|
2022-05-05 10:19:39 +05:00
|
|
|
|
|
2022-05-05 11:46:18 +05:00
|
|
|
|
//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);
|
2022-05-05 10:19:39 +05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
2022-05-05 11:46:18 +05:00
|
|
|
|
//migrationBuilder.DropForeignKey(
|
|
|
|
|
// name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
|
|
|
|
// table: "t_detected_operation");
|
2022-05-05 10:19:39 +05:00
|
|
|
|
|
2022-05-05 11:46:18 +05:00
|
|
|
|
//migrationBuilder.DropForeignKey(
|
|
|
|
|
// name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
|
|
|
|
// table: "t_detected_operation");
|
2022-05-05 10:19:39 +05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|