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( name: "absolute_mark", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Абсолютная отметка"); migrationBuilder.AddColumn( name: "angle_intensity", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Интенсивность по углу"); migrationBuilder.AddColumn( name: "azimuth_intensity", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Интенсивность по азимуту"); migrationBuilder.AddColumn( name: "east_cartographic", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Восток картографический"); migrationBuilder.AddColumn( name: "east_orifice", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Восток отн-но устья"); migrationBuilder.AddColumn( name: "north_cartographic", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Север картографический"); migrationBuilder.AddColumn( name: "north_orifice", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Север отн-но устья"); migrationBuilder.AddColumn( name: "orifice_offset", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Смещение от устья"); migrationBuilder.AddColumn( name: "spatial_intensity", table: "t_planned_trajectory", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Пространственная интенсивность"); } } }