forked from ddrilling/AsbCloudServer
Olga Nemt
aa3b96b31b
1. Добавлен столбец IdPlan в WellOperation 2. Перписан метод MergeArrays 3. Формирование списка плановых операций для сопоставления с фактическими (GetOperationsPlan в WellOperationController)
27 lines
747 B
C#
27 lines
747 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class Add_FK_PlanOperation_to_WellOperation : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "id_plan",
|
|
table: "t_well_operation",
|
|
type: "integer",
|
|
nullable: true,
|
|
comment: "Id плановой операции");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "id_plan",
|
|
table: "t_well_operation");
|
|
}
|
|
}
|
|
}
|