forked from ddrilling/AsbCloudServer
Fix db model TelemetryDataSpin. remove space in encoder_resolution column
This commit is contained in:
parent
864d851b6a
commit
a5eb4e5212
2763
AsbCloudDb/Migrations/20211115090307_Fix_telemetrydataspin_field_name.Designer.cs
generated
Normal file
2763
AsbCloudDb/Migrations/20211115090307_Fix_telemetrydataspin_field_name.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class Fix_telemetrydataspin_field_name : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "encoder_resolution ",
|
||||
table: "t_telemetry_data_spin",
|
||||
newName: "encoder_resolution");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "encoder_resolution",
|
||||
table: "t_telemetry_data_spin",
|
||||
newName: "encoder_resolution ");
|
||||
}
|
||||
}
|
||||
}
|
@ -1113,7 +1113,7 @@ namespace AsbCloudDb.Migrations
|
||||
|
||||
b.Property<float?>("EncoderResolution")
|
||||
.HasColumnType("real")
|
||||
.HasColumnName("encoder_resolution ")
|
||||
.HasColumnName("encoder_resolution")
|
||||
.HasComment(" Разрешение энкодера");
|
||||
|
||||
b.Property<short?>("Mode")
|
||||
|
@ -66,7 +66,7 @@ namespace AsbCloudDb.Model
|
||||
public float? TorqueStarting { get; set; }
|
||||
[Column("rotor_torque_avg"), Comment(" Момент в роторе средний")]
|
||||
public float? RotorTorqueAvg { get; set; }
|
||||
[Column("encoder_resolution "), Comment(" Разрешение энкодера")]
|
||||
[Column("encoder_resolution"), Comment(" Разрешение энкодера")]
|
||||
public float? EncoderResolution { get; set; }
|
||||
[Column("ratio"), Comment(" Коэффициент редукции редектора")]
|
||||
public float? Ratio { get; set; }
|
||||
|
Loading…
Reference in New Issue
Block a user