We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d4f54b commit 685e46aCopy full SHA for 685e46a
src/Tools/SchemaTool.php
@@ -31,6 +31,7 @@
31
use function array_filter;
32
use function array_flip;
33
use function array_intersect_key;
34
+use function array_merge;
35
use function assert;
36
use function count;
37
use function current;
@@ -712,6 +713,10 @@ private function gatherRelationJoinColumns(
712
713
$uniqueConstraints[] = ['columns' => [$quotedColumnName]];
714
}
715
716
+ if ($joinColumn->options) {
717
+ $fkOptions = array_merge($fkOptions, $joinColumn->options);
718
+ }
719
+
720
if (isset($joinColumn->onDelete)) {
721
$fkOptions['onDelete'] = $joinColumn->onDelete;
722
0 commit comments