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 UpdateTable_t_telemetry_data_saub : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "pump0Flow",
|
|
table: "t_telemetry_data_saub",
|
|
type: "real",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "pump1Flow",
|
|
table: "t_telemetry_data_saub",
|
|
type: "real",
|
|
nullable: true);
|
|
|
|
migrationBuilder.AddColumn<float>(
|
|
name: "pump2Flow",
|
|
table: "t_telemetry_data_saub",
|
|
type: "real",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "pump0Flow",
|
|
table: "t_telemetry_data_saub");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "pump1Flow",
|
|
table: "t_telemetry_data_saub");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "pump2Flow",
|
|
table: "t_telemetry_data_saub");
|
|
}
|
|
}
|
|
}
|