forked from ddrilling/AsbCloudServer
72 lines
2.2 KiB
C#
72 lines
2.2 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace AsbCloudDb.Migrations
|
|||
|
{
|
|||
|
public partial class Update_t_permission_well_doument : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 503,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocuments.delete");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 504,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocuments.edit");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 505,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocuments.get");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 506,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocuments.editPublisher");
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 503,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocument.delete");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 504,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocument.edit");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 505,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocument.get");
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "t_permission",
|
|||
|
keyColumn: "id",
|
|||
|
keyValue: 506,
|
|||
|
column: "name",
|
|||
|
value: "WellFinalDocument.editPublisher");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|