DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20230414072923_EditTable_t_telemetry_data_saub.cs

46 lines
1.3 KiB
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
2023-04-14 12:32:55 +05:00
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class EditTable_t_telemetry_data_saub : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "pump2Flow",
table: "t_telemetry_data_saub",
newName: "pump2_flow");
migrationBuilder.RenameColumn(
name: "pump1Flow",
table: "t_telemetry_data_saub",
newName: "pump1_flow");
migrationBuilder.RenameColumn(
name: "pump0Flow",
table: "t_telemetry_data_saub",
newName: "pump0_flow");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "pump2_flow",
table: "t_telemetry_data_saub",
newName: "pump2Flow");
migrationBuilder.RenameColumn(
name: "pump1_flow",
table: "t_telemetry_data_saub",
newName: "pump1Flow");
migrationBuilder.RenameColumn(
name: "pump0_flow",
table: "t_telemetry_data_saub",
newName: "pump0Flow");
}
}
}