forked from ddrilling/AsbCloudServer
4fe570f3e9
Fix other services to use new model.
66 lines
2.7 KiB
C#
66 lines
2.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class Add_WellOperation_WellDepthStart : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "duration_hours",
|
|
table: "t_well_operation",
|
|
type: "double precision",
|
|
nullable: false,
|
|
comment: "Продолжительность, часы",
|
|
oldClrType: typeof(double),
|
|
oldType: "double precision",
|
|
oldComment: "Продолжительность в часах");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "depth_end",
|
|
table: "t_well_operation",
|
|
type: "double precision",
|
|
nullable: false,
|
|
comment: "Глубина забоя после завершения операции, м",
|
|
oldClrType: typeof(double),
|
|
oldType: "double precision",
|
|
oldComment: "Глубина, на которой производилась операция");
|
|
|
|
migrationBuilder.AddColumn<double>(
|
|
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<double>(
|
|
name: "duration_hours",
|
|
table: "t_well_operation",
|
|
type: "double precision",
|
|
nullable: false,
|
|
comment: "Продолжительность в часах",
|
|
oldClrType: typeof(double),
|
|
oldType: "double precision",
|
|
oldComment: "Продолжительность, часы");
|
|
|
|
migrationBuilder.AlterColumn<double>(
|
|
name: "depth_end",
|
|
table: "t_well_operation",
|
|
type: "double precision",
|
|
nullable: false,
|
|
comment: "Глубина, на которой производилась операция",
|
|
oldClrType: typeof(double),
|
|
oldType: "double precision",
|
|
oldComment: "Глубина забоя после завершения операции, м");
|
|
}
|
|
}
|
|
}
|