using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace AsbCloudDb.Migrations { public partial class WellOperationCategory_editDefaultData : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 10); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 16); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 17); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1006); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1011); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1012); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1014); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1023); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1024); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1045); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1052); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 1055); migrationBuilder.InsertData( table: "t_well_operation_category", columns: new[] { "id", "id_parent", "key_value_name", "key_value_units", "name" }, values: new object[,] { { 3000, null, "dT", "м/ч", "БУРЕНИЕ" }, { 3001, null, "dT", "мин", "СПО" }, { 3002, null, "dT", "мин", "КРЕПЛЕНИЕ" }, { 3003, null, "dT", "мин", "ГФР" }, { 3004, null, "dT", "мин", "Вспомогательные операции" }, { 3005, null, "dT", "мин", "Непроизводительное время (НПВ)" } }); migrationBuilder.InsertData( table: "t_well_operation_category", columns: new[] { "id", "id_parent", "key_value_name", "key_value_units", "name" }, values: new object[,] { { 4000, 3000, "dT", "мин", "КНБК" }, { 4001, 3000, "dT", "м/ч", "Механическое. бурение" }, { 4002, 3000, "dT", "мин", "Статический замер" }, { 4003, 3000, "dT", "мин", "Нормализация диаметра скважины" }, { 4004, 3000, "dT", "мин", "Наращивание" }, { 4005, 3001, "dT", "мин", "СПО" }, { 4006, 3002, "dT", "мин", "Спуск обсадной колонны" }, { 4007, 3002, "dT", "мин", "Цементирование" }, { 4008, 3002, "dT", "мин", "Вспомогательные работы при креплении" }, { 4009, 3003, "dT", "мин", "Сборка/разборка приборов ГИС" }, { 4010, 3003, "dT", "мин", "СПО" }, { 4011, 3003, "dT", "мин", "ГИС" }, { 4012, 3004, "dT", "мин", "Промывка, ОБР" }, { 4013, 3004, "dT", "мин", "Вспомогательные работы" }, { 4014, 3005, "dT", "мин", "Ремонт оборудования" }, { 4015, 3005, "dT", "мин", "Аварийные работы" }, { 4016, 3005, "dT", "мин", "Осложнение" }, { 4017, 3005, "dT", "мин", "Незаложенные в ГГД операции" } }); migrationBuilder.InsertData( table: "t_well_operation_category", columns: new[] { "id", "id_parent", "key_value_name", "key_value_units", "name" }, values: new object[,] { { 2001, 4003, "dT", "мин", "Проработка во время бурения" }, { 2002, 4003, "dT", "мин", "Шаблонировка во время бурения" }, { 2003, 4004, "dT", "мин", "Наращивание" }, { 2004, 4008, "dT", "мин", "ПЗР при спуске ОК" }, { 2005, 4008, "dT", "мин", "ПЗР при цементировании" }, { 2006, 4008, "dT", "мин", "Опрессовка ОК" }, { 2007, 4008, "dT", "мин", "Опрессовка БИ" }, { 2008, 4009, "dT", "мин", "Сборка комплекса приборов ГИС" }, { 2009, 4009, "dT", "мин", "Разборка комплекса приборов ГИС" }, { 2010, 4010, "dT", "мин", "Спуск приборов ГИС (на трубах)" }, { 2011, 4010, "dT", "мин", "Подъем приборов ГИС (на трубах)" }, { 2012, 4011, "dT", "мин", "Комплекс ГИС на трубах" }, { 2013, 4011, "dT", "мин", "Комплекс ГИС на жестком кабеле" }, { 2014, 4011, "dT", "мин", "Комплекс ГИС на кабеле" }, { 2015, 4012, "dT", "мин", "Приготовление БР" }, { 2016, 4012, "dT", "мин", "Ориентирование ТС при бурении" }, { 2017, 4013, "dT", "мин", "Наработка жёлоба" }, { 2018, 4013, "dT", "мин", "Тайм-дриллинг" }, { 2019, 4013, "dT", "мин", "ПЗР при сборке КНБК" }, { 2020, 4013, "dT", "мин", "ПР перед забуркой направления" }, { 2021, 4013, "dT", "мин", "Перемонтаж ПВО " }, { 2022, 4013, "dT", "мин", "Долив затруба при подъёме" }, { 2024, 4013, "dT", "мин", "Обвязка устья с циркуляционной системой" }, { 2025, 4013, "dT", "мин", "Продувка манифольда" }, { 2026, 4013, "dT", "мин", "Полная замена талевого каната" }, { 2027, 4013, "dT", "мин", "Перетяжка талевого каната" }, { 2028, 4013, "dT", "мин", "Учебная тревога \"Выброс\"" }, { 2029, 4013, "dT", "мин", "Чистка ЦСГО/емкостного блока" }, { 2030, 4015, "dT", "мин", "Установка ванн" }, { 2031, 4015, "dT", "мин", "Ожидание" }, { 2032, 4015, "dT", "мин", "Работа яссом" }, { 2033, 4015, "dT", "мин", "Расхаживание" }, { 2034, 4015, "dT", "мин", "Ловильные работы" }, { 2035, 4015, "dT", "мин", "Определение места прихвата и ЛМ" }, { 2036, 4015, "dT", "мин", "Торпедирование (отстрел)" }, { 2037, 4015, "dT", "мин", "СПО - овершот" }, { 2038, 4015, "dT", "мин", "СПО - колокол" }, { 2039, 4015, "dT", "мин", "СПО - метчик" }, { 2040, 4015, "dT", "мин", "СПО - труболовка" }, { 2041, 4015, "dT", "мин", "Торпедирование (встряхивание)" }, { 2042, 4015, "dT", "мин", "Фрезеровка" }, { 2043, 4016, "dT", "мин", "Поглощение" }, { 2044, 4016, "dT", "мин", "Сальникообразование" }, { 2045, 4016, "dT", "мин", "Контролируемое ГНВП" }, { 2046, 4016, "dT", "мин", "Утяжеление БР" }, { 2047, 4017, "dT", "мин", "Ревизия КНБК/инструмента/ЗТС" }, { 2048, 4017, "dT", "мин", "подъем ОК" }, { 2049, 4017, "dT", "мин", "Обработка раствора (несоответствие параметров)" }, { 60001, 4001, "МСП", "м/ч", "Ротором (РУС)" }, { 60002, 4001, "МСП", "м/ч", "Направленно (СЛАЙД)" }, { 60003, 4002, "dT", "мин", "Замер ЗТС (запись MWD)" }, { 60004, 4005, "dT", "мин", "Спуск инструмента" }, { 60006, 4007, "dT", "мин", "Цементирование" }, { 60007, 4012, "dT", "мин", "Обработка БР" }, { 60008, 4012, "dT", "мин", "Перезапись гаммы-каротажа" }, { 60009, 4012, "dT", "мин", "Спуск инструмента с проработкой" }, { 60010, 4012, "dT", "мин", "Закачка/прокачка пачки" }, { 60011, 4013, "dT", "мин", "Срезка" }, { 60012, 4014, "dT", "мин", "Ремонт бурового оборудования" }, { 60013, 4017, "dT", "мин", "НПВ / прочее" }, { 60014, 4012, "dT", "мин", "Промывка" }, { 60017, 4003, "dT", "мин", "Шаблонировка во время бурения" }, { 60018, 4004, "dT", "мин", "Удержание в клиньях" }, { 60019, 4011, "dT", "мин", "Комплекс ГИС на кабеле" }, { 60020, 4011, "dT", "мин", "Комплекс ГИС на трубах" }, { 60023, 4012, "dT", "мин", "Приготовление БР" }, { 60026, 4003, "dT", "мин", "Проработка во время бурения" }, { 60028, 4005, "dT", "мин", "Подъем инструмента" } }); } protected override void Down(MigrationBuilder migrationBuilder) { 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: 2003); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2004); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2005); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2006); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2007); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2008); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2009); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2010); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2011); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2012); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2013); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2014); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2015); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2016); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2017); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2018); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2019); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2020); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2021); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2022); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2024); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2025); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2026); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2027); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2028); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2029); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2030); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2031); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2032); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2033); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2034); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2035); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2036); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2037); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2038); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2039); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2040); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2041); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2042); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2043); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2044); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2045); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2046); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2047); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2048); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 2049); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4000); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4006); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60001); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60002); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60003); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60004); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60006); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60007); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60008); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60009); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60010); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60011); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60012); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60013); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60014); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60017); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60018); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60019); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60020); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60023); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60026); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 60028); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4001); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4002); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4003); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4004); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4005); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4007); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4008); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4009); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4010); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4011); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4012); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4013); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4014); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4015); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4016); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 4017); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 3000); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 3001); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 3002); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 3003); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 3004); migrationBuilder.DeleteData( table: "t_well_operation_category", keyColumn: "id", keyValue: 3005); migrationBuilder.InsertData( table: "t_well_operation_category", columns: new[] { "id", "id_parent", "key_value_name", "key_value_units", "name" }, values: new object[,] { { 1, null, "dT", "мин", "Невозможно определить операцию" }, { 10, null, "dT", "мин", "Подъем из скважины" }, { 16, null, "dT", "мин", "Вращение без циркуляции" }, { 17, null, "dT", "мин", "На поверхности" }, { 1006, null, "dT", "мин", "Установка ФА" }, { 1011, null, "dT", "мин", "Начало цикла строительства скважины" }, { 1012, null, "dT", "мин", "Окончание цикла строительства скважины" }, { 1014, null, "dT", "мин", "Опрессовка Ц.К." }, { 1023, null, "dT", "мин", "Сборка инструмента с мостков" }, { 1024, null, "dT", "мин", "Подготовительные работы" }, { 1045, null, "dT", "мин", "Прочее" }, { 1052, null, "dT", "мин", "Тех. отстой" }, { 1055, null, "dT", "мин", "Вспомогательные работы" } }); } } }