Skip to content

Commit

Permalink
Equipment upgrade Tree view Display (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jebzou authored Nov 12, 2023
1 parent ef367cf commit b017849
Show file tree
Hide file tree
Showing 25 changed files with 1,368 additions and 37 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace ElectronicObserver.Database.Migrations
{
public partial class AddedParentToUpgradePlan : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "ParentId",
table: "EquipmentUpgradePlanItems",
type: "INTEGER",
nullable: true);

migrationBuilder.CreateIndex(
name: "IX_EquipmentUpgradePlanItems_ParentId",
table: "EquipmentUpgradePlanItems",
column: "ParentId");

migrationBuilder.AddForeignKey(
name: "FK_EquipmentUpgradePlanItems_EquipmentUpgradePlanItems_ParentId",
table: "EquipmentUpgradePlanItems",
column: "ParentId",
principalTable: "EquipmentUpgradePlanItems",
principalColumn: "Id");
}

protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_EquipmentUpgradePlanItems_EquipmentUpgradePlanItems_ParentId",
table: "EquipmentUpgradePlanItems");

migrationBuilder.DropIndex(
name: "IX_EquipmentUpgradePlanItems_ParentId",
table: "EquipmentUpgradePlanItems");

migrationBuilder.DropColumn(
name: "ParentId",
table: "EquipmentUpgradePlanItems");
}
}
}
Loading

0 comments on commit b017849

Please sign in to comment.