DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20230321120948_Add_Usage_to_ProcessMap.cs

40 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Add_Usage_to_ProcessMap : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<double>(
name: "usage_saub",
table: "t_process_map",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Плановый процент использования АКБ");
migrationBuilder.AddColumn<double>(
name: "usage_spin",
table: "t_process_map",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Плановый процент использования spin master");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "usage_saub",
table: "t_process_map");
migrationBuilder.DropColumn(
name: "usage_spin",
table: "t_process_map");
}
}
}