Fix import WellOperations edit WellOperationCategory default data

This commit is contained in:
Фролов 2021-10-19 10:34:11 +05:00
parent aab6064153
commit 54d78ddd0e
4 changed files with 2724 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace AsbCloudDb.Migrations
{
public partial class Edit_WellOperationCategory_DefaultData : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "t_well_operation_category",
keyColumn: "id",
keyValue: 1001,
column: "name",
value: "Бурение");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "t_well_operation_category",
keyColumn: "id",
keyValue: 1001,
column: "name",
value: "Бурение в интервале");
}
}
}

View File

@ -1909,7 +1909,7 @@ namespace AsbCloudDb.Migrations
{
Id = 1001,
Code = 0,
Name = "Бурение в интервале"
Name = "Бурение"
},
new
{

View File

@ -281,7 +281,7 @@ namespace AsbCloudDb.Model
new WellOperationCategory {Id = 16, Name = "Вращение без циркуляции", Code = 0 },
new WellOperationCategory {Id = 17, Name = "На поверхности", Code = 0 },
// Операции ручного ввода
new WellOperationCategory {Id = 1001, Name = "Бурение в интервале", Code = 0 },
new WellOperationCategory {Id = 1001, Name = "Бурение", Code = 0 },
new WellOperationCategory {Id = 1002, Name = "ГИС", Code = 0 },
new WellOperationCategory {Id = 1003, Name = "ГФР", Code = 0 },
new WellOperationCategory {Id = 1004, Name = "Монтаж ПВО", Code = 0 },