Merge pull request 'Фикс названия разрешения получения версий' (#315) from fix/version_list into dev

Reviewed-on: https://test.digitaldrilling.ru:8443/DDrilling/AsbCloudServer/pulls/315
This commit is contained in:
Никита Фролов 2024-09-02 12:24:11 +05:00
commit ba57ee478c
4 changed files with 12411 additions and 2 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,32 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace AsbCloudDb.Migrations
{
/// <inheritdoc />
public partial class Update_Permission_Version : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "t_permission",
keyColumn: "id",
keyValue: 532,
column: "name",
value: "Version.get");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "t_permission",
keyColumn: "id",
keyValue: 532,
column: "name",
value: "TelemetryInfo.get");
}
}
}

View File

@ -2631,7 +2631,7 @@ namespace AsbCloudDb.Migrations
{
Id = 532,
Description = "Разрешение просматривать информацию о телеметрии",
Name = "TelemetryInfo.get"
Name = "Version.get"
});
});

View File

@ -165,7 +165,7 @@ namespace AsbCloudDb.Model.DefaultData
new() { Id = 530, Name = "WellSectionPlan.edit", Description = "Разрешение на редактирование плановой конструкции скважины"},
new() { Id = 531, Name = "WellSectionPlan.delete", Description = "Разрешение на удаление плановой конструкции скважины"},
new() { Id = 532, Name = "TelemetryInfo.get", Description = "Разрешение просматривать информацию о телеметрии"}
new() { Id = 532, Name = "Version.get", Description = "Разрешение просматривать информацию о телеметрии"}
};
}
}