summaryrefslogtreecommitdiff
path: root/db/migrations/Reference.php
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrations/Reference.php')
-rw-r--r--db/migrations/Reference.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/migrations/Reference.php b/db/migrations/Reference.php
index 4c35b59b..719bee76 100644
--- a/db/migrations/Reference.php
+++ b/db/migrations/Reference.php
@@ -31,6 +31,7 @@ trait Reference
$table->foreign($fromColumn)
->references('id')->on($targetTable)
+ ->onUpdate('cascade')
->onDelete('cascade');
}
}