2024-07-04 11:02:45 +05:00
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2023-01-24 15:03:45 +05:00
|
|
|
|
|
|
|
#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");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|