2024-07-04 11:02:45 +05:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2023-02-03 09:07:53 +05:00
|
|
|
|
|
|
|
|
|
#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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|