forked from ddrilling/AsbCloudServer
db change
This commit is contained in:
parent
ab280f3451
commit
d27aa4e83a
7808
AsbCloudDb/Migrations/20230321073247_edit_ProcessMap_add_LimitMax_and_delete_fact.Designer.cs
generated
Normal file
7808
AsbCloudDb/Migrations/20230321073247_edit_ProcessMap_add_LimitMax_and_delete_fact.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,142 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace AsbCloudDb.Migrations
|
||||||
|
{
|
||||||
|
public partial class edit_ProcessMap_add_LimitMax_and_delete_fact : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "axial_load_fact",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "flow_fact",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "pressure_fact",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "top_drive_speed_fact",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "top_drive_torque_fact",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "axial_load_limit_max",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0.0,
|
||||||
|
comment: "Нагрузка, допустимый максимум");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "flow_limit_max",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0.0,
|
||||||
|
comment: "Расход, допустимый максимум");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<int>(
|
||||||
|
name: "id_mode",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "integer",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0,
|
||||||
|
comment: "Id режима (1- ротор, 2 слайд)");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "pressure_limit_max",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0.0,
|
||||||
|
comment: "Перепад давления, допустимый максимум");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "top_drive_speed_limit_max",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0.0,
|
||||||
|
comment: "Обороты на ВСП, допустимый максимум");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "top_drive_torque_limit_max",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: false,
|
||||||
|
defaultValue: 0.0,
|
||||||
|
comment: "Момент на ВСП, допустимый максимум");
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "axial_load_limit_max",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "flow_limit_max",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "id_mode",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "pressure_limit_max",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "top_drive_speed_limit_max",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "top_drive_torque_limit_max",
|
||||||
|
table: "t_process_map");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "axial_load_fact",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: true,
|
||||||
|
comment: "Нагрузка, факт");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "flow_fact",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: true,
|
||||||
|
comment: "Расход, факт");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "pressure_fact",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: true,
|
||||||
|
comment: "Перепад давления, факт");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "top_drive_speed_fact",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: true,
|
||||||
|
comment: "Обороты на ВСП, факт");
|
||||||
|
|
||||||
|
migrationBuilder.AddColumn<double>(
|
||||||
|
name: "top_drive_torque_fact",
|
||||||
|
table: "t_process_map",
|
||||||
|
type: "double precision",
|
||||||
|
nullable: true,
|
||||||
|
comment: "Момент на ВСП, факт");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1935,10 +1935,10 @@ namespace AsbCloudDb.Migrations
|
|||||||
|
|
||||||
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
NpgsqlPropertyBuilderExtensions.UseIdentityByDefaultColumn(b.Property<int>("Id"));
|
||||||
|
|
||||||
b.Property<double?>("AxialLoadFact")
|
b.Property<double>("AxialLoadLimitMax")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("axial_load_fact")
|
.HasColumnName("axial_load_limit_max")
|
||||||
.HasComment("Нагрузка, факт");
|
.HasComment("Нагрузка, допустимый максимум");
|
||||||
|
|
||||||
b.Property<double>("AxialLoadPlan")
|
b.Property<double>("AxialLoadPlan")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
@ -1955,16 +1955,21 @@ namespace AsbCloudDb.Migrations
|
|||||||
.HasColumnName("depth_start")
|
.HasColumnName("depth_start")
|
||||||
.HasComment("Стартовая глубина");
|
.HasComment("Стартовая глубина");
|
||||||
|
|
||||||
b.Property<double?>("FlowFact")
|
b.Property<double>("FlowLimitMax")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("flow_fact")
|
.HasColumnName("flow_limit_max")
|
||||||
.HasComment("Расход, факт");
|
.HasComment("Расход, допустимый максимум");
|
||||||
|
|
||||||
b.Property<double>("FlowPlan")
|
b.Property<double>("FlowPlan")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("flow_plan")
|
.HasColumnName("flow_plan")
|
||||||
.HasComment("Расход, план");
|
.HasComment("Расход, план");
|
||||||
|
|
||||||
|
b.Property<int>("IdMode")
|
||||||
|
.HasColumnType("integer")
|
||||||
|
.HasColumnName("id_mode")
|
||||||
|
.HasComment("Id режима (1- ротор, 2 слайд)");
|
||||||
|
|
||||||
b.Property<int>("IdUser")
|
b.Property<int>("IdUser")
|
||||||
.HasColumnType("integer")
|
.HasColumnType("integer")
|
||||||
.HasColumnName("id_user")
|
.HasColumnName("id_user")
|
||||||
@ -1985,10 +1990,10 @@ namespace AsbCloudDb.Migrations
|
|||||||
.HasColumnName("last_update")
|
.HasColumnName("last_update")
|
||||||
.HasComment("Дата последнего изменения");
|
.HasComment("Дата последнего изменения");
|
||||||
|
|
||||||
b.Property<double?>("PressureFact")
|
b.Property<double>("PressureLimitMax")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("pressure_fact")
|
.HasColumnName("pressure_limit_max")
|
||||||
.HasComment("Перепад давления, факт");
|
.HasComment("Перепад давления, допустимый максимум");
|
||||||
|
|
||||||
b.Property<double>("PressurePlan")
|
b.Property<double>("PressurePlan")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
@ -2000,20 +2005,20 @@ namespace AsbCloudDb.Migrations
|
|||||||
.HasColumnName("rop_plan")
|
.HasColumnName("rop_plan")
|
||||||
.HasComment("Плановая механическая скорость, м/ч");
|
.HasComment("Плановая механическая скорость, м/ч");
|
||||||
|
|
||||||
b.Property<double?>("TopDriveSpeedFact")
|
b.Property<double>("TopDriveSpeedLimitMax")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("top_drive_speed_fact")
|
.HasColumnName("top_drive_speed_limit_max")
|
||||||
.HasComment("Обороты на ВСП, факт");
|
.HasComment("Обороты на ВСП, допустимый максимум");
|
||||||
|
|
||||||
b.Property<double>("TopDriveSpeedPlan")
|
b.Property<double>("TopDriveSpeedPlan")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("top_drive_speed_plan")
|
.HasColumnName("top_drive_speed_plan")
|
||||||
.HasComment("Обороты на ВСП, план");
|
.HasComment("Обороты на ВСП, план");
|
||||||
|
|
||||||
b.Property<double?>("TopDriveTorqueFact")
|
b.Property<double>("TopDriveTorqueLimitMax")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
.HasColumnName("top_drive_torque_fact")
|
.HasColumnName("top_drive_torque_limit_max")
|
||||||
.HasComment("Момент на ВСП, факт");
|
.HasComment("Момент на ВСП, допустимый максимум");
|
||||||
|
|
||||||
b.Property<double>("TopDriveTorquePlan")
|
b.Property<double>("TopDriveTorquePlan")
|
||||||
.HasColumnType("double precision")
|
.HasColumnType("double precision")
|
||||||
|
@ -19,6 +19,9 @@ namespace AsbCloudDb.Model
|
|||||||
[Column("id_user"), Comment("Id пользователя")]
|
[Column("id_user"), Comment("Id пользователя")]
|
||||||
public int IdUser { get; set; }
|
public int IdUser { get; set; }
|
||||||
|
|
||||||
|
[Column("id_mode"), Comment("Id режима (1- ротор, 2 слайд)")]
|
||||||
|
public int IdMode { get; set; }
|
||||||
|
|
||||||
[Column("id_wellsection_type"), Comment("Тип секции")]
|
[Column("id_wellsection_type"), Comment("Тип секции")]
|
||||||
public int IdWellSectionType { get; set; }
|
public int IdWellSectionType { get; set; }
|
||||||
|
|
||||||
@ -34,32 +37,32 @@ namespace AsbCloudDb.Model
|
|||||||
[Column("axial_load_plan"), Comment("Нагрузка, план")]
|
[Column("axial_load_plan"), Comment("Нагрузка, план")]
|
||||||
public double AxialLoadPlan { get; set; }
|
public double AxialLoadPlan { get; set; }
|
||||||
|
|
||||||
[Column("axial_load_fact"), Comment("Нагрузка, факт")]
|
[Column("axial_load_limit_max"), Comment("Нагрузка, допустимый максимум")]
|
||||||
public double? AxialLoadFact { get; set; }
|
public double AxialLoadLimitMax { get; set; }
|
||||||
|
|
||||||
[Column("pressure_plan"), Comment("Перепад давления, план")]
|
[Column("pressure_plan"), Comment("Перепад давления, план")]
|
||||||
public double PressurePlan { get; set; }
|
public double PressurePlan { get; set; }
|
||||||
|
|
||||||
[Column("pressure_fact"), Comment("Перепад давления, факт")]
|
[Column("pressure_limit_max"), Comment("Перепад давления, допустимый максимум")]
|
||||||
public double? PressureFact { get; set; }
|
public double PressureLimitMax { get; set; }
|
||||||
|
|
||||||
[Column("top_drive_torque_plan"), Comment("Момент на ВСП, план")]
|
[Column("top_drive_torque_plan"), Comment("Момент на ВСП, план")]
|
||||||
public double TopDriveTorquePlan { get; set; }
|
public double TopDriveTorquePlan { get; set; }
|
||||||
|
|
||||||
[Column("top_drive_torque_fact"), Comment("Момент на ВСП, факт")]
|
[Column("top_drive_torque_limit_max"), Comment("Момент на ВСП, допустимый максимум")]
|
||||||
public double? TopDriveTorqueFact { get; set; }
|
public double TopDriveTorqueLimitMax { get; set; }
|
||||||
|
|
||||||
[Column("top_drive_speed_plan"), Comment("Обороты на ВСП, план")]
|
[Column("top_drive_speed_plan"), Comment("Обороты на ВСП, план")]
|
||||||
public double TopDriveSpeedPlan { get; set; }
|
public double TopDriveSpeedPlan { get; set; }
|
||||||
|
|
||||||
[Column("top_drive_speed_fact"), Comment("Обороты на ВСП, факт")]
|
[Column("top_drive_speed_limit_max"), Comment("Обороты на ВСП, допустимый максимум")]
|
||||||
public double? TopDriveSpeedFact { get; set; }
|
public double TopDriveSpeedLimitMax { get; set; }
|
||||||
|
|
||||||
[Column("flow_plan"), Comment("Расход, план")]
|
[Column("flow_plan"), Comment("Расход, план")]
|
||||||
public double FlowPlan { get; set; }
|
public double FlowPlan { get; set; }
|
||||||
|
|
||||||
[Column("flow_fact"), Comment("Расход, факт")]
|
[Column("flow_limit_max"), Comment("Расход, допустимый максимум")]
|
||||||
public double? FlowFact { get; set; }
|
public double FlowLimitMax { get; set; }
|
||||||
|
|
||||||
[Column("rop_plan"), Comment("Плановая механическая скорость, м/ч")]
|
[Column("rop_plan"), Comment("Плановая механическая скорость, м/ч")]
|
||||||
public double RopPlan { get; set; }
|
public double RopPlan { get; set; }
|
||||||
|
Loading…
Reference in New Issue
Block a user