forked from ddrilling/AsbCloudServer
28 lines
790 B
C#
28 lines
790 B
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace AsbCloudDb.Migrations
|
|||
|
{
|
|||
|
public partial class AddValToOp : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<double>(
|
|||
|
name: "value",
|
|||
|
table: "t_detected_operation",
|
|||
|
type: "double precision",
|
|||
|
nullable: false,
|
|||
|
defaultValue: 0.0,
|
|||
|
comment: "Ключевой показатель операции");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "value",
|
|||
|
table: "t_detected_operation");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|