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
commit 9e3fd260bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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