forked from ddrilling/AsbCloudServer
35 lines
1.1 KiB
C#
35 lines
1.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|