forked from ddrilling/AsbCloudServer
Rename docs categories
This commit is contained in:
parent
3128c8f701
commit
852e13f140
2972
AsbCloudDb/Migrations/20211217104347_RenameDocsCategories.Designer.cs
generated
Normal file
2972
AsbCloudDb/Migrations/20211217104347_RenameDocsCategories.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
65
AsbCloudDb/Migrations/20211217104347_RenameDocsCategories.cs
Normal file
65
AsbCloudDb/Migrations/20211217104347_RenameDocsCategories.cs
Normal file
@ -0,0 +1,65 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace AsbCloudDb.Migrations
|
||||
{
|
||||
public partial class RenameDocsCategories : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 11);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 8,
|
||||
columns: new[] { "name", "short_name" },
|
||||
values: new object[] { "Долотный сервис", "toolService" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 9,
|
||||
columns: new[] { "name", "short_name" },
|
||||
values: new object[] { "Буровой подрядчик", "drillService" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 10,
|
||||
columns: new[] { "name", "short_name" },
|
||||
values: new object[] { "Сервис по заканчиванию скважины", "closingService" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 8,
|
||||
columns: new[] { "name", "short_name" },
|
||||
values: new object[] { "Последний замер бурового раствора ПЛАН", "fluidPlanLastData" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 9,
|
||||
columns: new[] { "name", "short_name" },
|
||||
values: new object[] { "Последний замер бурового раствора ФАКТ", "fluidFactLastData" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "t_file_category",
|
||||
keyColumn: "id",
|
||||
keyValue: 10,
|
||||
columns: new[] { "name", "short_name" },
|
||||
values: new object[] { "Последние данные Шламограммы", "mudLastData" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "t_file_category",
|
||||
columns: new[] { "id", "name", "short_name" },
|
||||
values: new object[] { 11, "Последние данные ННБ", "nnbLastData" });
|
||||
}
|
||||
}
|
||||
}
|
@ -437,26 +437,20 @@ namespace AsbCloudDb.Migrations
|
||||
new
|
||||
{
|
||||
Id = 8,
|
||||
Name = "Последний замер бурового раствора ПЛАН",
|
||||
ShortName = "fluidPlanLastData"
|
||||
Name = "Долотный сервис",
|
||||
ShortName = "toolService"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 9,
|
||||
Name = "Последний замер бурового раствора ФАКТ",
|
||||
ShortName = "fluidFactLastData"
|
||||
Name = "Буровой подрядчик",
|
||||
ShortName = "drillService"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 10,
|
||||
Name = "Последние данные Шламограммы",
|
||||
ShortName = "mudLastData"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 11,
|
||||
Name = "Последние данные ННБ",
|
||||
ShortName = "nnbLastData"
|
||||
Name = "Сервис по заканчиванию скважины",
|
||||
ShortName = "closingService"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
@ -385,10 +385,12 @@ namespace AsbCloudDb.Model
|
||||
new FileCategory {Id = 5, Name = "Документы по скважине", ShortName = "wellDocuments"},
|
||||
new FileCategory {Id = 6, Name = "Супервайзер", ShortName = "supervisor"},
|
||||
new FileCategory {Id = 7, Name = "Мастер", ShortName = "master"},
|
||||
new FileCategory {Id = 8, Name = "Последний замер бурового раствора ПЛАН", ShortName = "fluidPlanLastData"},
|
||||
new FileCategory {Id = 9, Name = "Последний замер бурового раствора ФАКТ", ShortName = "fluidFactLastData"},
|
||||
new FileCategory {Id = 10, Name = "Последние данные Шламограммы", ShortName = "mudLastData"},
|
||||
new FileCategory {Id = 11, Name = "Последние данные ННБ", ShortName = "nnbLastData"},
|
||||
|
||||
new FileCategory {Id = 8, Name = "Долотный сервис", ShortName = "toolService"},
|
||||
new FileCategory {Id = 9, Name = "Буровой подрядчик", ShortName = "drillService"},
|
||||
new FileCategory {Id = 10, Name = "Сервис по заканчиванию скважины", ShortName = "closingService"},
|
||||
//new FileCategory {Id = 11, Name = "", ShortName = ""},
|
||||
|
||||
new FileCategory {Id = 12, Name = "Рапорт", ShortName = "report"},
|
||||
new FileCategory {Id = 13, Name = "Программа бурения, части", ShortName = "ПБч"},
|
||||
new FileCategory {Id = 14, Name = "Программа бурения", ShortName = "ПБ"},
|
||||
|
Loading…
Reference in New Issue
Block a user