This commit is contained in:
ai.astrakhantsev 2023-04-14 13:45:16 +05:00
parent 63a7ba2034
commit 7ce3d1de9c
4 changed files with 7923 additions and 6 deletions

File diff suppressed because it is too large Load Diff

View File

@ -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");
}
}
}

View File

@ -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")

View File

@ -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]