DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20221226104823_editTable_PlannedTrajectory.cs
2022-12-26 15:49:44 +05:00

334 lines
14 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class editTable_PlannedTrajectory : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "load_date",
table: "t_planned_trajectory",
newName: "update_date");
migrationBuilder.AlterColumn<double>(
name: "zenith_angle",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Угол зенитный",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Угол зенитный");
migrationBuilder.AlterColumn<double>(
name: "wellbore_depth",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Глубина по стволу",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Глубина по стволу");
migrationBuilder.AlterColumn<double>(
name: "vertical_depth",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Глубина вертикальная",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Глубина вертикальная");
migrationBuilder.AlterColumn<double>(
name: "spatial_intensity",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Пространственная интенсивность",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Пространственная интенсивность");
migrationBuilder.AlterColumn<double>(
name: "orifice_offset",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Смещение от устья",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Смещение от устья");
migrationBuilder.AlterColumn<double>(
name: "north_orifice",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Север отн-но устья",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Север отн-но устья");
migrationBuilder.AlterColumn<double>(
name: "north_cartographic",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Север картографический",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Север картографический");
migrationBuilder.AlterColumn<double>(
name: "east_orifice",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Восток отн-но устья",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Восток отн-но устья");
migrationBuilder.AlterColumn<double>(
name: "east_cartographic",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Восток картографический",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Восток картографический");
migrationBuilder.AlterColumn<double>(
name: "azimuth_magnetic",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Азимут Магнитный",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Азимут Магнитный");
migrationBuilder.AlterColumn<double>(
name: "azimuth_intensity",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Интенсивность по азимуту",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Интенсивность по азимуту");
migrationBuilder.AlterColumn<double>(
name: "azimuth_geo",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Азимут Географ.",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Азимут Географ.");
migrationBuilder.AlterColumn<double>(
name: "angle_intensity",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Интенсивность по углу",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Интенсивность по углу");
migrationBuilder.AlterColumn<double>(
name: "absolute_mark",
table: "t_planned_trajectory",
type: "double precision",
nullable: true,
comment: "Абсолютная отметка",
oldClrType: typeof(double),
oldType: "double precision",
oldComment: "Абсолютная отметка");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "update_date",
table: "t_planned_trajectory",
newName: "load_date");
migrationBuilder.AlterColumn<double>(
name: "zenith_angle",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Угол зенитный",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Угол зенитный");
migrationBuilder.AlterColumn<double>(
name: "wellbore_depth",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Глубина по стволу",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Глубина по стволу");
migrationBuilder.AlterColumn<double>(
name: "vertical_depth",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Глубина вертикальная",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Глубина вертикальная");
migrationBuilder.AlterColumn<double>(
name: "spatial_intensity",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Пространственная интенсивность",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Пространственная интенсивность");
migrationBuilder.AlterColumn<double>(
name: "orifice_offset",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Смещение от устья",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Смещение от устья");
migrationBuilder.AlterColumn<double>(
name: "north_orifice",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Север отн-но устья",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Север отн-но устья");
migrationBuilder.AlterColumn<double>(
name: "north_cartographic",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Север картографический",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Север картографический");
migrationBuilder.AlterColumn<double>(
name: "east_orifice",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Восток отн-но устья",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Восток отн-но устья");
migrationBuilder.AlterColumn<double>(
name: "east_cartographic",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Восток картографический",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Восток картографический");
migrationBuilder.AlterColumn<double>(
name: "azimuth_magnetic",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Азимут Магнитный",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Азимут Магнитный");
migrationBuilder.AlterColumn<double>(
name: "azimuth_intensity",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Интенсивность по азимуту",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Интенсивность по азимуту");
migrationBuilder.AlterColumn<double>(
name: "azimuth_geo",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Азимут Географ.",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Азимут Географ.");
migrationBuilder.AlterColumn<double>(
name: "angle_intensity",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Интенсивность по углу",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Интенсивность по углу");
migrationBuilder.AlterColumn<double>(
name: "absolute_mark",
table: "t_planned_trajectory",
type: "double precision",
nullable: false,
defaultValue: 0.0,
comment: "Абсолютная отметка",
oldClrType: typeof(double),
oldType: "double precision",
oldNullable: true,
oldComment: "Абсолютная отметка");
}
}
}