using Microsoft.EntityFrameworkCore.Migrations;

namespace GreenTree.Strohrmann.ERP.Domain.Migrations
{
    public partial class CraftEmployee_Hotfix_2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddForeignKey(
                table: "CraftEmployees",
                name: "FK_CraftEmployees_Crafts_CraftId",
                column: "CraftId",
                principalTable: "Crafts",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                table: "CraftEmployees",
                name: "FK_CraftEmployees_Crafts_CraftId");
        }
    }
}
