forked from ddrilling/AsbCloudServer
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
||
|
||
#nullable disable
|
||
|
||
namespace AsbCloudDb.Migrations
|
||
{
|
||
public partial class Add_permissions_for_ProcessMap : Migration
|
||
{
|
||
protected override void Up(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.InsertData(
|
||
table: "t_permission",
|
||
columns: new[] { "id", "description", "name" },
|
||
values: new object[,]
|
||
{
|
||
{ 513, "Разрешение просматривать РТК", "ProcessMap.get" },
|
||
{ 514, "Разрешение редактировать РТК", "ProcessMap.edit" },
|
||
{ 515, "Разрешение удалять РТК", "ProcessMap.delete" }
|
||
});
|
||
}
|
||
|
||
protected override void Down(MigrationBuilder migrationBuilder)
|
||
{
|
||
migrationBuilder.DeleteData(
|
||
table: "t_permission",
|
||
keyColumn: "id",
|
||
keyValue: 513);
|
||
|
||
migrationBuilder.DeleteData(
|
||
table: "t_permission",
|
||
keyColumn: "id",
|
||
keyValue: 514);
|
||
|
||
migrationBuilder.DeleteData(
|
||
table: "t_permission",
|
||
keyColumn: "id",
|
||
keyValue: 515);
|
||
}
|
||
}
|
||
}
|