Manual fix migration

This commit is contained in:
ngfrolov 2022-05-05 11:46:18 +05:00
parent 31634e653a
commit bf56fbf205

View File

@ -8,32 +8,32 @@ namespace AsbCloudDb.Migrations
{
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_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);
//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_telemetry_id_telemetry",
// table: "t_detected_operation");
migrationBuilder.DropForeignKey(
name: "FK_t_detected_operation_t_well_operation_category_id_category",
table: "t_detected_operation");
//migrationBuilder.DropForeignKey(
// name: "FK_t_detected_operation_t_well_operation_category_id_category",
// table: "t_detected_operation");
}
}
}