forked from silfumus/ElectronicObserver
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Equipment upgrade Tree view Display (#408)
- Loading branch information
Showing
25 changed files
with
1,368 additions
and
37 deletions.
There are no files selected for viewing
306 changes: 306 additions & 0 deletions
306
ElectronicObserver/Database/Migrations/20231111115946_AddedParentToUpgradePlan.Designer.cs
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
ElectronicObserver/Database/Migrations/20231111115946_AddedParentToUpgradePlan.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
} | ||
} | ||
} |
Oops, something went wrong.