using Microsoft.EntityFrameworkCore.Migrations; namespace AsbCloudDb.Migrations { public partial class Add_WellOperation_WellDepthStart : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "duration_hours", table: "t_well_operation", type: "double precision", nullable: false, comment: "Продолжительность, часы", oldClrType: typeof(double), oldType: "double precision", oldComment: "Продолжительность в часах"); migrationBuilder.AlterColumn( name: "depth_end", table: "t_well_operation", type: "double precision", nullable: false, comment: "Глубина забоя после завершения операции, м", oldClrType: typeof(double), oldType: "double precision", oldComment: "Глубина, на которой производилась операция"); migrationBuilder.AddColumn( name: "depth_start", table: "t_well_operation", type: "double precision", nullable: false, defaultValue: 0.0, comment: "Глубина забоя на начало операции, м"); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "depth_start", table: "t_well_operation"); migrationBuilder.AlterColumn( name: "duration_hours", table: "t_well_operation", type: "double precision", nullable: false, comment: "Продолжительность в часах", oldClrType: typeof(double), oldType: "double precision", oldComment: "Продолжительность, часы"); migrationBuilder.AlterColumn( name: "depth_end", table: "t_well_operation", type: "double precision", nullable: false, comment: "Глубина, на которой производилась операция", oldClrType: typeof(double), oldType: "double precision", oldComment: "Глубина забоя после завершения операции, м"); } } }