forked from ddrilling/AsbCloudServer
0b1f9683b9
reafctor TelemetryHub; Add wellDepth into TelemetryMessage
25 lines
707 B
C#
25 lines
707 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class AddWellDepthToMessage : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "well_depth",
|
|
table: "t_telemetry_message",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "well_depth",
|
|
table: "t_telemetry_message");
|
|
}
|
|
}
|
|
}
|