forked from ddrilling/AsbCloudServer
76 lines
2.6 KiB
C#
76 lines
2.6 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|