using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace AsbCloudDb.Migrations { public partial class AddPermissions_wireline_plannedTrajectory : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.InsertData( table: "t_permission", columns: new[] { "id", "description", "name" }, values: new object[,] { { 507, "Разрешение просматривать наработка талевого каната", "TelemetryWirelineRunOut.get" }, { 510, "Разрешение просматривать плановая траектория", "TelemetryWirelineRunOut.get" }, { 511, "Разрешение редактировать плановая траектория", "TelemetryWirelineRunOut.edit" }, { 512, "Разрешение удалять плановая траектория", "TelemetryWirelineRunOut.delete" } }); migrationBuilder.InsertData( table: "t_relation_user_role_permission", columns: new[] { "id_permission", "id_user_role" }, values: new object[,] { { 510, 1 }, { 511, 1 }, { 512, 1 }, { 507, 1500 }, { 510, 1500 } }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 510, 1 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 511, 1 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 512, 1 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 507, 1500 }); migrationBuilder.DeleteData( table: "t_relation_user_role_permission", keyColumns: new[] { "id_permission", "id_user_role" }, keyValues: new object[] { 510, 1500 }); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 507); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 510); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 511); migrationBuilder.DeleteData( table: "t_permission", keyColumn: "id", keyValue: 512); } } }