49 lines
1.5 KiB
C#
49 lines
1.5 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace ManagerService.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class RemoveGuidedStepTriggerGeoPoint : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropForeignKey(
|
|
name: "FK_GuidedSteps_GeoPoints_TriggerGeoPointId",
|
|
table: "GuidedSteps");
|
|
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_GuidedSteps_TriggerGeoPointId",
|
|
table: "GuidedSteps");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TriggerGeoPointId",
|
|
table: "GuidedSteps");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "TriggerGeoPointId",
|
|
table: "GuidedSteps",
|
|
type: "integer",
|
|
nullable: true);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_GuidedSteps_TriggerGeoPointId",
|
|
table: "GuidedSteps",
|
|
column: "TriggerGeoPointId");
|
|
|
|
migrationBuilder.AddForeignKey(
|
|
name: "FK_GuidedSteps_GeoPoints_TriggerGeoPointId",
|
|
table: "GuidedSteps",
|
|
column: "TriggerGeoPointId",
|
|
principalTable: "GeoPoints",
|
|
principalColumn: "Id");
|
|
}
|
|
}
|
|
}
|