forked from ddrilling/AsbCloudServer
178 lines
7.3 KiB
C#
178 lines
7.3 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace AsbCloudDb.Migrations
|
|||
|
{
|
|||
|
public partial class Fix_Spelling : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterTable(
|
|||
|
name: "t_drill_flow_chart",
|
|||
|
comment: "Параметры коридоров бурения (диапазоны параметров бурения)",
|
|||
|
oldComment: "Параметры корридоров бурения (диапазоны параметров бурения)");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "torque_starting",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Страгивающий момент",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: " Страгивающий момент");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "rotor_torque_avg",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Момент в роторе средний",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: " Момент в роторе средний");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "ratio",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: " Коэффициент редукции редуктора",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: " Коэффициент редукции редектора");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "position_zero",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Нулевая позиция осцилляции",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Нулевая позиция осциляции");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "position_right",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Крайний правый угол осцилляции",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Крайний правый угол осциляции");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "encoder_resolution",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Разрешение энкодера",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: " Разрешение энкодера");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<bool>(
|
|||
|
name: "is_pressure_gt_20",
|
|||
|
table: "t_telemetry_analysis",
|
|||
|
type: "boolean",
|
|||
|
nullable: false,
|
|||
|
comment: "Давление более 20",
|
|||
|
oldClrType: typeof(bool),
|
|||
|
oldType: "boolean",
|
|||
|
oldComment: "Давоение более 20");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AlterTable(
|
|||
|
name: "t_drill_flow_chart",
|
|||
|
comment: "Параметры корридоров бурения (диапазоны параметров бурения)",
|
|||
|
oldComment: "Параметры коридоров бурения (диапазоны параметров бурения)");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "torque_starting",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: " Страгивающий момент",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Страгивающий момент");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "rotor_torque_avg",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: " Момент в роторе средний",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Момент в роторе средний");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "ratio",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: " Коэффициент редукции редектора",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: " Коэффициент редукции редуктора");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "position_zero",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Нулевая позиция осциляции",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Нулевая позиция осцилляции");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "position_right",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: "Крайний правый угол осциляции",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Крайний правый угол осцилляции");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<float>(
|
|||
|
name: "encoder_resolution",
|
|||
|
table: "t_telemetry_data_spin",
|
|||
|
type: "real",
|
|||
|
nullable: true,
|
|||
|
comment: " Разрешение энкодера",
|
|||
|
oldClrType: typeof(float),
|
|||
|
oldType: "real",
|
|||
|
oldNullable: true,
|
|||
|
oldComment: "Разрешение энкодера");
|
|||
|
|
|||
|
migrationBuilder.AlterColumn<bool>(
|
|||
|
name: "is_pressure_gt_20",
|
|||
|
table: "t_telemetry_analysis",
|
|||
|
type: "boolean",
|
|||
|
nullable: false,
|
|||
|
comment: "Давоение более 20",
|
|||
|
oldClrType: typeof(bool),
|
|||
|
oldType: "boolean",
|
|||
|
oldComment: "Давление более 20");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|