forked from ddrilling/AsbCloudServer
Comment
This commit is contained in:
parent
63a7ba2034
commit
7ce3d1de9c
7839
AsbCloudDb/Migrations/20230414084427_EditCommentTable_t_telemetry_data_saub.Designer.cs
generated
Normal file
7839
AsbCloudDb/Migrations/20230414084427_EditCommentTable_t_telemetry_data_saub.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,75 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class EditCommentTable_t_telemetry_data_saub : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<float>(
|
||||
name: "pump2_flow",
|
||||
table: "t_telemetry_data_saub",
|
||||
type: "real",
|
||||
nullable: true,
|
||||
comment: "Расход. Буровой насос 3",
|
||||
oldClrType: typeof(float),
|
||||
oldType: "real",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<float>(
|
||||
name: "pump1_flow",
|
||||
table: "t_telemetry_data_saub",
|
||||
type: "real",
|
||||
nullable: true,
|
||||
comment: "Расход. Буровой насос 2",
|
||||
oldClrType: typeof(float),
|
||||
oldType: "real",
|
||||
oldNullable: true);
|
||||
|
||||
migrationBuilder.AlterColumn<float>(
|
||||
name: "pump0_flow",
|
||||
table: "t_telemetry_data_saub",
|
||||
type: "real",
|
||||
nullable: true,
|
||||
comment: "Расход. Буровой насос 1",
|
||||
oldClrType: typeof(float),
|
||||
oldType: "real",
|
||||
oldNullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AlterColumn<float>(
|
||||
name: "pump2_flow",
|
||||
table: "t_telemetry_data_saub",
|
||||
type: "real",
|
||||
nullable: true,
|
||||
oldClrType: typeof(float),
|
||||
oldType: "real",
|
||||
oldNullable: true,
|
||||
oldComment: "Расход. Буровой насос 3");
|
||||
|
||||
migrationBuilder.AlterColumn<float>(
|
||||
name: "pump1_flow",
|
||||
table: "t_telemetry_data_saub",
|
||||
type: "real",
|
||||
nullable: true,
|
||||
oldClrType: typeof(float),
|
||||
oldType: "real",
|
||||
oldNullable: true,
|
||||
oldComment: "Расход. Буровой насос 2");
|
||||
|
||||
migrationBuilder.AlterColumn<float>(
|
||||
name: "pump0_flow",
|
||||
table: "t_telemetry_data_saub",
|
||||
type: "real",
|
||||
nullable: true,
|
||||
oldClrType: typeof(float),
|
||||
oldType: "real",
|
||||
oldNullable: true,
|
||||
oldComment: "Расход. Буровой насос 1");
|
||||
}
|
||||
}
|
||||
}
|
@ -4125,15 +4125,18 @@ namespace AsbCloudDb.Migrations
|
||||
|
||||
b.Property<float?>("Pump0Flow")
|
||||
.HasColumnType("real")
|
||||
.HasColumnName("pump0_flow");
|
||||
.HasColumnName("pump0_flow")
|
||||
.HasComment("Расход. Буровой насос 1");
|
||||
|
||||
b.Property<float?>("Pump1Flow")
|
||||
.HasColumnType("real")
|
||||
.HasColumnName("pump1_flow");
|
||||
.HasColumnName("pump1_flow")
|
||||
.HasComment("Расход. Буровой насос 2");
|
||||
|
||||
b.Property<float?>("Pump2Flow")
|
||||
.HasColumnType("real")
|
||||
.HasColumnName("pump2_flow");
|
||||
.HasColumnName("pump2_flow")
|
||||
.HasComment("Расход. Буровой насос 3");
|
||||
|
||||
b.Property<float?>("RotorSpeed")
|
||||
.HasColumnType("real")
|
||||
|
@ -125,13 +125,13 @@ namespace AsbCloudDb.Model
|
||||
[Column("mse"), Comment("MSE")]
|
||||
public float? Mse { get; set; }
|
||||
|
||||
[Column("pump0_flow"), JsonPropertyName("Расход. Буровой насос 1")]
|
||||
[Column("pump0_flow"), Comment("Расход. Буровой насос 1")]
|
||||
public float? Pump0Flow { get; set; }
|
||||
|
||||
[Column("pump1_flow"), JsonPropertyName("Расход. Буровой насос 2")]
|
||||
[Column("pump1_flow"), Comment("Расход. Буровой насос 2")]
|
||||
public float? Pump1Flow { get; set; }
|
||||
|
||||
[Column("pump2_flow"), JsonPropertyName("Расход. Буровой насос 3")]
|
||||
[Column("pump2_flow"), Comment("Расход. Буровой насос 3")]
|
||||
public float? Pump2Flow { get; set; }
|
||||
|
||||
[JsonIgnore]
|
||||
|
Loading…
Reference in New Issue
Block a user