forked from ddrilling/AsbCloudServer
66 lines
2.6 KiB
C#
66 lines
2.6 KiB
C#
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" });
|
|
}
|
|
}
|
|
}
|