using Microsoft.EntityFrameworkCore.Migrations;
|
|
#nullable disable
|
|
namespace FlexJobApi.Database.Migrations.Migrations
|
{
|
/// <inheritdoc />
|
public partial class UpdateEnterpriseEmployee0828002 : Migration
|
{
|
/// <inheritdoc />
|
protected override void Up(MigrationBuilder migrationBuilder)
|
{
|
migrationBuilder.CreateIndex(
|
name: "IX_EnterpriseEmployeeContract_ContractTemplateId",
|
table: "EnterpriseEmployeeContract",
|
column: "ContractTemplateId");
|
|
migrationBuilder.AddForeignKey(
|
name: "FK_EnterpriseEmployeeContract_ContractTemplate_ContractTemplateId",
|
table: "EnterpriseEmployeeContract",
|
column: "ContractTemplateId",
|
principalTable: "ContractTemplate",
|
principalColumn: "Id");
|
}
|
|
/// <inheritdoc />
|
protected override void Down(MigrationBuilder migrationBuilder)
|
{
|
migrationBuilder.DropForeignKey(
|
name: "FK_EnterpriseEmployeeContract_ContractTemplate_ContractTemplateId",
|
table: "EnterpriseEmployeeContract");
|
|
migrationBuilder.DropIndex(
|
name: "IX_EnterpriseEmployeeContract_ContractTemplateId",
|
table: "EnterpriseEmployeeContract");
|
}
|
}
|
}
|