using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace AsbCloudDb.Migrations { public partial class AddRolesRelatedDictionaries : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 2); migrationBuilder.InsertData( table: "t_permission", columns: new[] { "id", "description", "name" }, values: new object[,] { { 100, "Разрешение удалять админ. Кусты", "AdminCluster.delete" }, { 101, "Разрешение редактировать админ. Кусты", "AdminCluster.edit" }, { 102, "Разрешение просматривать админ. Кусты", "AdminCluster.get" }, { 103, "Разрешение удалять админ. Компании", "AdminCompany.delete" }, { 104, "Разрешение редактировать админ. Компании", "AdminCompany.edit" }, { 105, "Разрешение просматривать админ. Компании", "AdminCompany.get" }, { 106, "Разрешение удалять админ. Типы компаний", "AdminCompanyType.delete" }, { 107, "Разрешение редактировать админ. Типы компаний", "AdminCompanyType.edit" }, { 108, "Разрешение просматривать админ. Типы компаний", "AdminCompanyType.get" }, { 109, "Разрешение удалять админ. Месторождения", "AdminDeposit.delete" }, { 110, "Разрешение редактировать админ. Месторождения", "AdminDeposit.edit" }, { 111, "Разрешение просматривать админ. Месторождения", "AdminDeposit.get" }, { 112, "Разрешение удалять админ. Разрешения", "AdminPermission.delete" }, { 113, "Разрешение редактировать админ. Разрешения", "AdminPermission.edit" }, { 114, "Разрешение просматривать админ. Разрешения", "AdminPermission.get" }, { 115, "Разрешение удалять админ. Телеметрию", "AdminTelemetry.delete" }, { 116, "Разрешение редактировать админ. Телеметрию", "AdminTelemetry.edit" }, { 117, "Разрешение просматривать админ. Телеметрию", "AdminTelemetry.get" }, { 118, "Разрешение удалять админ. Пользователей", "AdminUser.delete" }, { 119, "Разрешение редактировать админ. Пользователей", "AdminUser.edit" }, { 120, "Разрешение просматривать админ. Пользователей", "AdminUser.get" }, { 121, "Разрешение удалять админ. Роли пользователей", "AdminUserRole.delete" }, { 122, "Разрешение редактировать админ. Роли пользователей", "AdminUserRole.edit" }, { 123, "Разрешение просматривать админ. Роли пользователей", "AdminUserRole.get" }, { 124, "Разрешение удалять админ. Скважины", "AdminWell.delete" }, { 125, "Разрешение редактировать админ. Скважины", "AdminWell.edit" }, { 126, "Разрешение просматривать админ. Скважины", "AdminWell.get" }, { 200, "Разрешение редактировать 0", "Auth.edit" }, { 201, "Разрешение просматривать 0", "Auth.get" }, { 202, "Разрешение просматривать Кусты", "Cluster.get" }, { 203, "Разрешение просматривать Месторождения", "Deposit.get" }, { 204, "Разрешение удалять РТК", "DrillFlowChart.delete" }, { 205, "Разрешение редактировать РТК", "DrillFlowChart.edit" }, { 206, "Разрешение просматривать РТК", "DrillFlowChart.get" }, { 207, "Разрешение удалять Программу бурения", "DrillingProgram.delete" }, { 208, "Разрешение редактировать Программу бурения", "DrillingProgram.edit" }, { 209, "Разрешение просматривать Программу бурения", "DrillingProgram.get" }, { 210, "Разрешение удалять Режимы бурения", "DrillParams.delete" }, { 211, "Разрешение редактировать Режимы бурения", "DrillParams.edit" }, { 212, "Разрешение просматривать Режимы бурения", "DrillParams.get" }, { 213, "Разрешение удалять Файлы", "File.delete" }, { 214, "Разрешение редактировать Файлы", "File.edit" }, { 215, "Разрешение просматривать Файлы", "File.get" }, { 216, "Разрешение удалять Измерения", "Measure.delete" }, { 217, "Разрешение редактировать Измерения", "Measure.edit" }, { 218, "Разрешение просматривать Измерения", "Measure.get" }, { 219, "Разрешение просматривать Сообщения телеметрии", "Message.get" }, { 220, "Разрешение просматривать Статистику по операциям", "OperationStat.get" }, { 221, "Разрешение редактировать Рапорта", "Report.edit" }, { 222, "Разрешение просматривать Рапорта", "Report.get" }, { 223, "Разрешение просматривать админ. Системная статистика", "RequerstTracker.get" }, { 224, "Разрешение удалять Рекомендации уставок", "Setpoints.delete" }, { 225, "Разрешение редактировать Рекомендации уставок", "Setpoints.edit" }, { 226, "Разрешение просматривать Рекомендации уставок", "Setpoints.get" }, { 227, "Разрешение редактировать Телеметрии", "Telemetry.edit" }, { 228, "Разрешение просматривать Анализ телеметрии", "TelemetryAnalytics.get" }, { 229, "Разрешение редактировать Данные телеметрии по САУБ", "TelemetryDataSaub.edit" }, { 230, "Разрешение просматривать Данные телеметрии по САУБ", "TelemetryDataSaub.get" }, { 231, "Разрешение редактировать Данные телеметрии по SpinMaster", "TelemetryDataSpin.edit" }, { 232, "Разрешение просматривать Данные телеметрии по SpinMaster", "TelemetryDataSpin.get" }, { 233, "Разрешение редактировать Скважины", "Well.edit" }, { 234, "Разрешение просматривать Скважины", "Well.get" }, { 235, "Разрешение редактировать Композитные скважины", "WellComposite.edit" }, { 236, "Разрешение просматривать Композитные скважины", "WellComposite.get" }, { 237, "Разрешение удалять Операции по скважинам", "WellOperation.delete" }, { 238, "Разрешение редактировать Операции по скважинам", "WellOperation.edit" }, { 239, "Разрешение просматривать Операции по скважинам", "WellOperation.get" } }); migrationBuilder.UpdateData( table: "t_user_role", keyColumn: "id", keyValue: 1, column: "caption", value: "root"); migrationBuilder.InsertData( table: "t_user_role", columns: new[] { "id", "caption", "id_type" }, values: new object[,] { { 1100, "admin_cluster.view", 0 }, { 1101, "admin_cluster.edit", 0 }, { 1102, "admin_company.view", 0 }, { 1103, "admin_company.edit", 0 }, { 1104, "admin_company_type.view", 0 }, { 1105, "admin_company_type.edit", 0 }, { 1106, "admin_deposit.view", 0 }, { 1107, "admin_deposit.edit", 0 }, { 1108, "admin_permission.view", 0 }, { 1109, "admin_permission.edit", 0 }, { 1110, "admin_role.view", 0 }, { 1111, "admin_role.edit", 0 }, { 1112, "admin_telemetry.view", 0 }, { 1113, "admin_user.view", 0 }, { 1114, "admin_user.edit", 0 }, { 1115, "admin_visit_log.view", 0 }, { 1116, "admin_well.view", 0 }, { 1117, "admin_well.edit", 0 }, { 1200, "archive.view", 0 }, { 1201, "cluster.view", 0 }, { 1202, "composite.view", 0 }, { 1203, "composite.edit", 0 }, { 1204, "deposit.view", 0 }, { 1205, "document.view", 0 }, { 1206, "drillProcessFlow.view", 0 }, { 1207, "drillProcessFlow.edit", 0 }, { 1208, "measure.view", 0 }, { 1209, "measure.edit", 0 }, { 1210, "message.view", 0 }, { 1211, "operations.view", 0 }, { 1212, "operations.edit", 0 }, { 1213, "params.view", 0 }, { 1214, "params.edit", 0 }, { 1215, "report.view", 0 }, { 1216, "report.edit", 0 }, { 1217, "setpoints.view", 0 }, { 1218, "setpoints.edit", 0 }, { 1219, "telemetry.view", 0 }, { 1220, "telemetryAnalysis.view", 0 }, { 1221, "well.view", 0 } }); migrationBuilder.InsertData( table: "t_relation_user_role_permission", columns: new[] { "id_permission", "id_user_role" }, values: new object[,] { { 102, 1100 }, { 111, 1100 }, { 100, 1101 }, { 101, 1101 }, { 105, 1102 }, { 108, 1102 }, { 103, 1103 }, { 104, 1103 }, { 108, 1104 }, { 106, 1105 }, { 107, 1105 }, { 111, 1106 }, { 109, 1107 }, { 110, 1107 }, { 114, 1108 }, { 112, 1109 }, { 113, 1109 }, { 114, 1110 }, { 123, 1110 }, { 121, 1111 }, { 122, 1111 }, { 117, 1112 }, { 105, 1113 }, { 120, 1113 }, { 123, 1113 }, { 118, 1114 }, { 119, 1114 }, { 200, 1114 }, { 223, 1115 }, { 102, 1116 }, { 105, 1116 }, { 117, 1116 }, { 124, 1117 }, { 125, 1117 }, { 203, 1200 }, { 230, 1200 }, { 202, 1201 }, { 203, 1201 }, { 220, 1201 }, { 203, 1202 }, { 220, 1202 }, { 236, 1202 }, { 235, 1203 }, { 202, 1204 }, { 203, 1204 }, { 215, 1205 }, { 203, 1206 }, { 206, 1206 }, { 205, 1207 }, { 218, 1208 }, { 217, 1209 }, { 203, 1210 }, { 230, 1210 }, { 203, 1211 }, { 220, 1211 }, { 239, 1211 }, { 237, 1212 }, { 238, 1212 }, { 203, 1213 }, { 212, 1213 }, { 239, 1213 }, { 210, 1214 }, { 211, 1214 }, { 203, 1215 }, { 222, 1215 }, { 221, 1216 }, { 226, 1217 }, { 224, 1218 }, { 225, 1218 }, { 203, 1219 }, { 206, 1219 }, { 230, 1219 }, { 203, 1220 }, { 228, 1220 }, { 202, 1221 }, { 203, 1221 }, { 220, 1221 } }); migrationBuilder.InsertData( table: "t_relation_user_role_user_role", columns: new[] { "id_user_role", "id_include_user_role" }, values: new object[,] { { 1101, 1100 }, { 1103, 1102 }, { 1105, 1104 }, { 1107, 1106 }, { 1109, 1108 }, { 1111, 1110 }, { 1114, 1113 }, { 1117, 1116 }, { 1203, 1202 }, { 1207, 1206 }, { 1209, 1208 }, { 1212, 1211 }, { 1214, 1213 }, { 1216, 1215 }, { 1218, 1217 } }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 115); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 116); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 126); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 201); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 204); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 207); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 208); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 209); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 213); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 214); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 216); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 219); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 227); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 229); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 231); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 232); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 233); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 234); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 102, 1100 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 111, 1100 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 100, 1101 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 101, 1101 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 105, 1102 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 108, 1102 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 103, 1103 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 104, 1103 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 108, 1104 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 106, 1105 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 107, 1105 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 111, 1106 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 109, 1107 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 110, 1107 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 114, 1108 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 112, 1109 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 113, 1109 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 114, 1110 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 123, 1110 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 121, 1111 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 122, 1111 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 117, 1112 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 105, 1113 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 120, 1113 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 123, 1113 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 118, 1114 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 119, 1114 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 200, 1114 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 223, 1115 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 102, 1116 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 105, 1116 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 117, 1116 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 124, 1117 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 125, 1117 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1200 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 230, 1200 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 202, 1201 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1201 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 220, 1201 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1202 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 220, 1202 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 236, 1202 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 235, 1203 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 202, 1204 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1204 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 215, 1205 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1206 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 206, 1206 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 205, 1207 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 218, 1208 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 217, 1209 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1210 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 230, 1210 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1211 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 220, 1211 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 239, 1211 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 237, 1212 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 238, 1212 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1213 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 212, 1213 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 239, 1213 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 210, 1214 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 211, 1214 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1215 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 222, 1215 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 221, 1216 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 226, 1217 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 224, 1218 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 225, 1218 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1219 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 206, 1219 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 230, 1219 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1220 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 228, 1220 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 202, 1221 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 203, 1221 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 220, 1221 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1101, 1100 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1103, 1102 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1105, 1104 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1107, 1106 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1109, 1108 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1111, 1110 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1114, 1113 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1117, 1116 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1203, 1202 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1207, 1206 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1209, 1208 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1212, 1211 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1214, 1213 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1216, 1215 }); migrationBuilder.DeleteData( table: "t_relation_user_role_user_role", keyColumns: new[] { "id_user_role", "id_include_user_role" }, keyValues: new object[] { 1218, 1217 }); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 100); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 101); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 102); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 103); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 104); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 105); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 106); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 107); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 108); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 109); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 110); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 111); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 112); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 113); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 114); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 117); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 118); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 119); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 120); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 121); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 122); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 123); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 124); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 125); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 200); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 202); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 203); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 205); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 206); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 210); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 211); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 212); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 215); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 217); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 218); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 220); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 221); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 222); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 223); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 224); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 225); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 226); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 228); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 230); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 235); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 236); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 237); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 238); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 239); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1100); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1101); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1102); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1103); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1104); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1105); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1106); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1107); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1108); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1109); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1110); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1111); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1112); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1113); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1114); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1115); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1116); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1117); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1200); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1201); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1202); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1203); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1204); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1205); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1206); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1207); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1208); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1209); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1210); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1211); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1212); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1213); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1214); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1215); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1216); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1217); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1218); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1219); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1220); migrationBuilder.DeleteData( table: "t_user_role", keyColumn: "id", keyValue: 1221); migrationBuilder.UpdateData( table: "t_user_role", keyColumn: "id", keyValue: 1, column: "caption", value: "Администратор"); migrationBuilder.InsertData( table: "t_user_role", columns: new[] { "id", "caption", "id_type" }, values: new object[] { 2, "Пользователь", 0 }); } } }