2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2022-12-08 18:00:01 +05:00
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
|
|
{
|
|
|
|
public partial class WellOperations_delete_categiries : Migration
|
|
|
|
{
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 14);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 1018);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 1020);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 1032);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 2001);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 2002);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 2012);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 2014);
|
|
|
|
|
|
|
|
migrationBuilder.DeleteData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
keyColumn: "id",
|
|
|
|
keyValue: 2015);
|
|
|
|
}
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
{
|
|
|
|
migrationBuilder.InsertData(
|
|
|
|
table: "t_well_operation_category",
|
|
|
|
columns: new[] { "id", "id_parent", "key_value_name", "key_value_units", "name" },
|
|
|
|
values: new object[,]
|
|
|
|
{
|
|
|
|
{ 14, 4004, "dT", "мин", "Удержание в клиньях" },
|
|
|
|
{ 1018, 4013, "dT", "мин", "Перетяжка талевого каната" },
|
|
|
|
{ 1020, 4005, "dT", "мин", "Подъем инструмента" },
|
|
|
|
{ 1032, 4005, "dT", "мин", "Спуск инструмента" },
|
|
|
|
{ 2001, 4003, "dT", "мин", "Проработка во время бурения" },
|
|
|
|
{ 2002, 4003, "dT", "мин", "Шаблонировка во время бурения" },
|
|
|
|
{ 2012, 4011, "dT", "мин", "Комплекс ГИС на трубах" },
|
|
|
|
{ 2014, 4011, "dT", "мин", "Комплекс ГИС на кабеле" },
|
|
|
|
{ 2015, 4012, "dT", "мин", "Приготовление БР" }
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|