forked from ddrilling/AsbCloudServer
46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#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");
|
|
}
|
|
}
|
|
}
|