forked from ddrilling/AsbCloudServer
Merge pull request 'Миграция для раздачи прав на просмотр / редактирвоание контактной информации по скважине' (#61) from feature/well-contacts into dev
Reviewed-on: http://test.digitaldrilling.ru:8080/DDrilling/AsbCloudServer/pulls/61
This commit is contained in:
commit
bd877d9f9a
8158
AsbCloudDb/Migrations/20230628043716_Add_Permissions_WellContact.Designer.cs
generated
Normal file
8158
AsbCloudDb/Migrations/20230628043716_Add_Permissions_WellContact.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,34 @@
|
|||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace AsbCloudDb.Migrations
|
||||||
|
{
|
||||||
|
public partial class Add_Permissions_WellContact : Migration
|
||||||
|
{
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.InsertData(
|
||||||
|
table: "t_permission",
|
||||||
|
columns: new[] { "id", "description", "name" },
|
||||||
|
values: new object[,]
|
||||||
|
{
|
||||||
|
{ 519, "Разрешение просматривать список контактов", "WellContact.get" },
|
||||||
|
{ 520, "Разрешение редактировать список контактов", "WellContact.edit" }
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DeleteData(
|
||||||
|
table: "t_permission",
|
||||||
|
keyColumn: "id",
|
||||||
|
keyValue: 519);
|
||||||
|
|
||||||
|
migrationBuilder.DeleteData(
|
||||||
|
table: "t_permission",
|
||||||
|
keyColumn: "id",
|
||||||
|
keyValue: 520);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -2002,6 +2002,18 @@ namespace AsbCloudDb.Migrations
|
|||||||
Id = 518,
|
Id = 518,
|
||||||
Description = "Разрешение удалять вопрос",
|
Description = "Разрешение удалять вопрос",
|
||||||
Name = "FaqStatistics.delete"
|
Name = "FaqStatistics.delete"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = 519,
|
||||||
|
Description = "Разрешение просматривать список контактов",
|
||||||
|
Name = "WellContact.get"
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
Id = 520,
|
||||||
|
Description = "Разрешение редактировать список контактов",
|
||||||
|
Name = "WellContact.edit"
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -3569,6 +3581,16 @@ namespace AsbCloudDb.Migrations
|
|||||||
{
|
{
|
||||||
IdUserRole = 1,
|
IdUserRole = 1,
|
||||||
IdPermission = 518
|
IdPermission = 518
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
IdUserRole = 1,
|
||||||
|
IdPermission = 519
|
||||||
|
},
|
||||||
|
new
|
||||||
|
{
|
||||||
|
IdUserRole = 1,
|
||||||
|
IdPermission = 520
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -149,6 +149,9 @@
|
|||||||
new (){ Id = 516, Name="FaqStatistics.get", Description="Разрешение просматривать статистику вопросов"},
|
new (){ Id = 516, Name="FaqStatistics.get", Description="Разрешение просматривать статистику вопросов"},
|
||||||
new (){ Id = 517, Name="FaqStatistics.edit", Description="Разрешение редактировать вопрос"},
|
new (){ Id = 517, Name="FaqStatistics.edit", Description="Разрешение редактировать вопрос"},
|
||||||
new (){ Id = 518, Name="FaqStatistics.delete", Description="Разрешение удалять вопрос"},
|
new (){ Id = 518, Name="FaqStatistics.delete", Description="Разрешение удалять вопрос"},
|
||||||
|
|
||||||
|
new (){ Id = 519, Name="WellContact.get", Description="Разрешение просматривать список контактов"},
|
||||||
|
new (){ Id = 520, Name="WellContact.edit", Description="Разрешение редактировать список контактов"},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
using AsbCloudApp.Data;
|
using AsbCloudApp.Data;
|
||||||
using AsbCloudApp.Data.User;
|
|
||||||
using AsbCloudApp.Services;
|
using AsbCloudApp.Services;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
Loading…
Reference in New Issue
Block a user