Merge pull request #1702 from pavel-mironchik/orphaned-rows

Handle a possible issue with orphaned 'document_item_taxes' while upg…
This commit is contained in:
Cüneyt Şentürk
2020-12-29 14:49:21 +03:00
committed by GitHub

View File

@@ -435,7 +435,8 @@ class Version210 extends Listener
$table->foreign('document_item_id') $table->foreign('document_item_id')
->references('id') ->references('id')
->on('document_items') ->on('document_items')
->cascadeOnUpdate(); ->cascadeOnUpdate()
->cascadeOnDelete();
} }
); );