Миграция на изменение названия поля: RadiusTarget на Radius

This commit is contained in:
Olga Nemt 2023-05-31 10:17:16 +05:00
parent be9be27bab
commit 180c5eab50
3 changed files with 8119 additions and 2 deletions

View File

@ -0,0 +1,25 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class UpdateTable_t_planned_trajectory_Field_RadiusTarget_Rename : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "radius_target",
table: "t_planned_trajectory",
newName: "radius");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "radius",
table: "t_planned_trajectory",
newName: "radius_target");
}
}
}

View File

@ -2073,9 +2073,9 @@ namespace AsbCloudDb.Migrations
.HasColumnName("orifice_offset")
.HasComment("Смещение от устья");
b.Property<double?>("RadiusTarget")
b.Property<double?>("Radius")
.HasColumnType("double precision")
.HasColumnName("radius_target")
.HasColumnName("radius")
.HasComment("Радиус цели");
b.Property<double>("SpatialIntensity")