forked from ddrilling/AsbCloudServer
58 lines
1.7 KiB
C#
58 lines
1.7 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace AsbCloudDb.Migrations
|
|
{
|
|
public partial class Fix_PlannedTrajectory_permissions : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.UpdateData(
|
|
table: "t_permission",
|
|
keyColumn: "id",
|
|
keyValue: 510,
|
|
column: "name",
|
|
value: "PlannedTrajectory.get");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "t_permission",
|
|
keyColumn: "id",
|
|
keyValue: 511,
|
|
column: "name",
|
|
value: "PlannedTrajectory.edit");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "t_permission",
|
|
keyColumn: "id",
|
|
keyValue: 512,
|
|
column: "name",
|
|
value: "PlannedTrajectory.delete");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.UpdateData(
|
|
table: "t_permission",
|
|
keyColumn: "id",
|
|
keyValue: 510,
|
|
column: "name",
|
|
value: "TelemetryWirelineRunOut.get");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "t_permission",
|
|
keyColumn: "id",
|
|
keyValue: 511,
|
|
column: "name",
|
|
value: "TelemetryWirelineRunOut.edit");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "t_permission",
|
|
keyColumn: "id",
|
|
keyValue: 512,
|
|
column: "name",
|
|
value: "TelemetryWirelineRunOut.delete");
|
|
}
|
|
}
|
|
}
|