forked from ddrilling/AsbCloudServer
124 lines
4.3 KiB
C#
124 lines
4.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class Update_PlannedTrajectory : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "absolute_mark",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "angle_intensity",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "azimuth_intensity",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "east_cartographic",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "east_orifice",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "north_cartographic",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "north_orifice",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "orifice_offset",
|
|
table: "t_planned_trajectory");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "spatial_intensity",
|
|
table: "t_planned_trajectory");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "absolute_mark",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Абсолютная отметка");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "angle_intensity",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Интенсивность по углу");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "azimuth_intensity",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Интенсивность по азимуту");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "east_cartographic",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Восток картографический");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "east_orifice",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Восток отн-но устья");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "north_cartographic",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Север картографический");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "north_orifice",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Север отн-но устья");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "orifice_offset",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Смещение от устья");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
name: "spatial_intensity",
|
|
table: "t_planned_trajectory",
|
|
type: "double precision",
|
|
nullable: false,
|
|
defaultValue: 0.0,
|
|
comment: "Пространственная интенсивность");
|
|
}
|
|
}
|
|
}
|