forked from ddrilling/AsbCloudServer
41 lines
1.4 KiB
C#
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|