forked from ddrilling/AsbCloudServer
Добавлена миграция
This commit is contained in:
parent
ee5162b442
commit
3add0a660e
9458
AsbCloudDb/Migrations/20240221064802_Migrate_ProcessMapPlanDrilling.Designer.cs
generated
Normal file
9458
AsbCloudDb/Migrations/20240221064802_Migrate_ProcessMapPlanDrilling.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,77 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class Migrate_ProcessMapPlanDrilling : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.Sql
|
||||
(@"insert " +
|
||||
@"into " +
|
||||
@"public.t_process_map_plan_drilling " +
|
||||
@"(id, " +
|
||||
@"id_mode, " +
|
||||
@"axial_load_plan, " +
|
||||
@"axial_load_limit_max, " +
|
||||
@"delta_pressure_plan, " +
|
||||
@"delta_pressure_limit_max, " +
|
||||
@"top_drive_torque_plan, " +
|
||||
@"top_drive_torque_limit_max, " +
|
||||
@"top_drive_speed_plan, " +
|
||||
@"top_drive_speed_limit_max, " +
|
||||
@"flow_plan, " +
|
||||
@"flow_limit_max, " +
|
||||
@"rop_plan, " +
|
||||
@"usage_saub, " +
|
||||
@"usage_spin, " +
|
||||
@"""comment"", " +
|
||||
@"id_author, " +
|
||||
@"id_editor, " +
|
||||
@"creation, " +
|
||||
@"obsolete, " +
|
||||
@"id_state, " +
|
||||
@"id_previous, " +
|
||||
@"id_well, " +
|
||||
@"id_wellsection_type, " +
|
||||
@"depth_start, " +
|
||||
@"depth_end) " +
|
||||
@"select " +
|
||||
@"tpmwd.id, " +
|
||||
@"tpmwd.id_mode, " +
|
||||
@"tpmwd.axial_load_plan, " +
|
||||
@"tpmwd.axial_load_limit_max, " +
|
||||
@"tpmwd.pressure_plan, " +
|
||||
@"tpmwd.pressure_limit_max, " +
|
||||
@"tpmwd.top_drive_torque_plan, " +
|
||||
@"tpmwd.top_drive_torque_limit_max, " +
|
||||
@"tpmwd.top_drive_speed_plan, " +
|
||||
@"tpmwd.top_drive_speed_limit_max, " +
|
||||
@"tpmwd.flow_plan, " +
|
||||
@"tpmwd.flow_limit_max, " +
|
||||
@"tpmwd.rop_plan, " +
|
||||
@"tpmwd.usage_saub, " +
|
||||
@"tpmwd.usage_spin, " +
|
||||
@"format('%s', tpmwd.""comment""), " +
|
||||
@"tpmwd.id_user, " +
|
||||
@"null, " +
|
||||
@"tpmwd.last_update - interval '1 year', " +
|
||||
@"null, " +
|
||||
@"0, " +
|
||||
@"null, " +
|
||||
@"tpmwd.id_well, " +
|
||||
@"tpmwd.id_wellsection_type, " +
|
||||
@"tpmwd.depth_start, " +
|
||||
@"tpmwd.depth_end " +
|
||||
@"from t_process_map_well_drilling tpmwd " +
|
||||
@"where id_well = 522;");
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user