forked from ddrilling/AsbCloudServer
Merge master to dev
This commit is contained in:
commit
cfdadcb2d2
6981
AsbCloudDb/Migrations/20230203040530_Add_permissions_for_ProcessMap.Designer.cs
generated
Normal file
6981
AsbCloudDb/Migrations/20230203040530_Add_permissions_for_ProcessMap.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,40 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
@ -1783,6 +1783,24 @@ namespace AsbCloudDb.Migrations
|
||||
Id = 512,
|
||||
Description = "Разрешение удалять плановая траектория",
|
||||
Name = "PlannedTrajectory.delete"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 513,
|
||||
Description = "Разрешение просматривать РТК",
|
||||
Name = "ProcessMap.get"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 514,
|
||||
Description = "Разрешение редактировать РТК",
|
||||
Name = "ProcessMap.edit"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 515,
|
||||
Description = "Разрешение удалять РТК",
|
||||
Name = "ProcessMap.delete"
|
||||
});
|
||||
});
|
||||
|
||||
|
@ -141,6 +141,13 @@
|
||||
new (){ Id = 510, Name="PlannedTrajectory.get", Description="Разрешение просматривать плановая траектория"},
|
||||
new (){ Id = 511, Name="PlannedTrajectory.edit", Description="Разрешение редактировать плановая траектория"},
|
||||
new (){ Id = 512, Name="PlannedTrajectory.delete", Description="Разрешение удалять плановая траектория"},
|
||||
new (){ Id = 510, Name="TelemetryWirelineRunOut.get", Description="Разрешение просматривать плановая траектория"},
|
||||
new (){ Id = 511, Name="TelemetryWirelineRunOut.edit", Description="Разрешение редактировать плановая траектория"},
|
||||
new (){ Id = 512, Name="TelemetryWirelineRunOut.delete", Description="Разрешение удалять плановая траектория"},
|
||||
|
||||
new (){ Id = 513, Name="ProcessMap.get", Description="Разрешение просматривать РТК"},
|
||||
new (){ Id = 514, Name="ProcessMap.edit", Description="Разрешение редактировать РТК"},
|
||||
new (){ Id = 515, Name="ProcessMap.delete", Description="Разрешение удалять РТК"},
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user