123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- using Microsoft.EntityFrameworkCore.Migrations;
- #nullable disable
- #pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
- namespace MTWorkHR.Infrastructure.Migrations
- {
- /// <inheritdoc />
- public partial class altrAdminRole2 : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 17L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 18L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 19L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 20L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 21L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 22L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 31L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 32L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 33L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 34L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 65L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 66L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 67L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 68L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 69L);
- migrationBuilder.DeleteData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 70L);
- migrationBuilder.UpdateData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 43L,
- column: "PermissionName",
- value: "Company");
- migrationBuilder.UpdateData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 46L,
- column: "PermissionName",
- value: "User");
- }
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.UpdateData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 43L,
- column: "PermissionName",
- value: "Company.GetAll");
- migrationBuilder.UpdateData(
- table: "RolePermissions",
- keyColumn: "Id",
- keyValue: 46L,
- column: "PermissionName",
- value: "User.GetAll");
- migrationBuilder.InsertData(
- table: "RolePermissions",
- columns: new[] { "Id", "PermissionId", "PermissionName", "RoleId" },
- values: new object[,]
- {
- { 17L, 17L, "Company", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 18L, 18L, "Company.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 19L, 19L, "Company.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 20L, 22L, "User", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 21L, 23L, "User.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 22L, 24L, "User.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 31L, 35L, "Contract", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 32L, 36L, "Contract.Create", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 33L, 37L, "Contract.Update", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 34L, 38L, "Contract.Delete", "EM5B3B92-2311-48F8-9DEC-F9FAEF1F211E" },
- { 65L, 17L, "Company", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
- { 66L, 18L, "Company.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
- { 67L, 19L, "Company.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
- { 68L, 22L, "User", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
- { 69L, 23L, "User.Create", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" },
- { 70L, 24L, "User.Update", "CO5B3B92-2311-48F8-9DEC-F9FAEF1F211R" }
- });
- }
- }
- }
|