DD.WellWorkover.Cloud/AsbCloudDb/Migrations/20220615103351_Add_OperationValuePermissions.cs
2022-06-15 15:34:47 +05:00

41 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
public partial class Add_OperationValuePermissions : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "t_permission",
columns: new[] { "id", "description", "name" },
values: new object[,]
{
{ 389, "Разрешение просматривать целевые значения", "OperationValue.get" },
{ 390, "Разрешение редактировать целевые значения", "OperationValue.edit" },
{ 391, "Разрешение удалять целевые значения", "OperationValue.delete" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "t_permission",
keyColumn: "id",
keyValue: 389);
migrationBuilder.DeleteData(
table: "t_permission",
keyColumn: "id",
keyValue: 390);
migrationBuilder.DeleteData(
table: "t_permission",
keyColumn: "id",
keyValue: 391);
}
}
}