sunpengfei
7 天以前 09d39bd7f1bfc72b78e0060c197562610a0ca9f8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using Microsoft.EntityFrameworkCore.Migrations;
 
#nullable disable
 
namespace FlexJobApi.Database.Migrations.Migrations
{
    /// <inheritdoc />
    public partial class UpdateTaskInfo0808 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_TaskInfoBenefit_TaskInfo_TaskInfoId",
                table: "TaskInfoBenefit");
 
            migrationBuilder.AddForeignKey(
                name: "FK_TaskInfoBenefit_TaskInfo_TaskInfoId",
                table: "TaskInfoBenefit",
                column: "TaskInfoId",
                principalTable: "TaskInfo",
                principalColumn: "Id",
                onDelete: ReferentialAction.Cascade);
        }
 
        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropForeignKey(
                name: "FK_TaskInfoBenefit_TaskInfo_TaskInfoId",
                table: "TaskInfoBenefit");
 
            migrationBuilder.AddForeignKey(
                name: "FK_TaskInfoBenefit_TaskInfo_TaskInfoId",
                table: "TaskInfoBenefit",
                column: "TaskInfoId",
                principalTable: "TaskInfo",
                principalColumn: "Id",
                onDelete: ReferentialAction.Restrict);
        }
    }
}