using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace MTWorkHR.Infrastructure.Migrations
{
///
public partial class altrAdminRole2 : Migration
{
///
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");
}
///
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" }
});
}
}
}