forked from ddrilling/AsbCloudServer
Manual fix migration
This commit is contained in:
parent
31634e653a
commit
bf56fbf205
@ -8,32 +8,32 @@ namespace AsbCloudDb.Migrations
|
|||||||
{
|
{
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.AddForeignKey(
|
//migrationBuilder.AddForeignKey(
|
||||||
name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
// name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
||||||
table: "t_detected_operation",
|
// table: "t_detected_operation",
|
||||||
column: "id_telemetry",
|
// column: "id_telemetry",
|
||||||
principalTable: "t_telemetry",
|
// principalTable: "t_telemetry",
|
||||||
principalColumn: "id",
|
// principalColumn: "id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
// onDelete: ReferentialAction.Cascade);
|
||||||
|
|
||||||
migrationBuilder.AddForeignKey(
|
//migrationBuilder.AddForeignKey(
|
||||||
name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
// name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
||||||
table: "t_detected_operation",
|
// table: "t_detected_operation",
|
||||||
column: "id_category",
|
// column: "id_category",
|
||||||
principalTable: "t_well_operation_category",
|
// principalTable: "t_well_operation_category",
|
||||||
principalColumn: "id",
|
// principalColumn: "id",
|
||||||
onDelete: ReferentialAction.Cascade);
|
// onDelete: ReferentialAction.Cascade);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
migrationBuilder.DropForeignKey(
|
//migrationBuilder.DropForeignKey(
|
||||||
name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
// name: "FK_t_detected_operation_t_telemetry_id_telemetry",
|
||||||
table: "t_detected_operation");
|
// table: "t_detected_operation");
|
||||||
|
|
||||||
migrationBuilder.DropForeignKey(
|
//migrationBuilder.DropForeignKey(
|
||||||
name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
// name: "FK_t_detected_operation_t_well_operation_category_id_category",
|
||||||
table: "t_detected_operation");
|
// table: "t_detected_operation");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user