using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace AsbCloudDb.Migrations { /// public partial class AddNewPropsToTelemetryDataWellWorkover : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AlterDatabase( oldCollation: "Russian_Russia.1251") .OldAnnotation("Npgsql:PostgresExtension:adminpack", ",,"); migrationBuilder.AddColumn( name: "state", table: "t_telemetry_data_well_workover", type: "smallint", nullable: false, defaultValue: (short)0, comment: "текущее состояние"); migrationBuilder.AddColumn( name: "trip_tank_level", table: "t_telemetry_data_well_workover", type: "real", nullable: false, defaultValue: 0f, comment: "Уровень доливной емкости (ДЕ), м"); migrationBuilder.AddColumn( name: "well_depth", table: "t_telemetry_data_well_workover", type: "real", nullable: false, defaultValue: 0f, comment: "Глубина забоя, м"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "state", table: "t_telemetry_data_well_workover"); migrationBuilder.DropColumn( name: "trip_tank_level", table: "t_telemetry_data_well_workover"); migrationBuilder.DropColumn( name: "well_depth", table: "t_telemetry_data_well_workover"); migrationBuilder.AlterDatabase( collation: "Russian_Russia.1251") .Annotation("Npgsql:PostgresExtension:adminpack", ",,"); } } }