2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2023-03-21 17:51:34 +05:00
|
|
|
|
|
|
|
#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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|