File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ protected override void Up(MigrationBuilder migrationBuilder)
109109 column : "ExecutionModeId" ,
110110 principalTable : "ExecutionMode" ,
111111 principalColumn : "ExecutionModeId" ,
112- onDelete : ReferentialAction . Cascade ) ;
112+ onDelete : ReferentialAction . NoAction ) ;
113113
114114 migrationBuilder . AddForeignKey (
115115 name : "FK_FlowRun_Organization_OrganizationId" ,
Original file line number Diff line number Diff line change @@ -96,14 +96,6 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
9696 modelBuilder . ApplyConfiguration ( new Configurations . EngineConfiguration ( ) ) ;
9797 modelBuilder . ApplyConfiguration ( new Configurations . BlockRunConfiguration ( ) ) ;
9898
99- // Apply the necessary changes to the FlowRun table to avoid cycles or multiple cascade paths
100- modelBuilder . Entity < FlowRun > ( )
101- . HasOne ( d => d . Flow )
102- . WithMany ( p => p . FlowRuns )
103- . HasForeignKey ( d => d . FlowId )
104- . OnDelete ( DeleteBehavior . NoAction )
105- . HasConstraintName ( $ "FK_{ nameof ( FlowRun ) } _{ nameof ( Flow ) } ") ;
106-
10799 OnModelCreatingPartial ( modelBuilder ) ;
108100 }
109101
You can’t perform that action at this time.
0 commit comments