2024-07-04 11:02:45 +05:00
|
|
|
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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|