Migrations: Use on update cascade

This commit is contained in:
Igor Scheller 2019-09-29 14:00:47 +02:00
parent 3a6d096fff
commit a2f4426058
2 changed files with 2 additions and 0 deletions

View File

@ -31,6 +31,7 @@ trait ChangesReferences
$table->foreign($reference->column)
->references($targetColumn)->on($targetTable)
->onUpdate('cascade')
->onDelete('cascade');
}
);

View File

@ -31,6 +31,7 @@ trait Reference
$table->foreign($fromColumn)
->references('id')->on($targetTable)
->onUpdate('cascade')
->onDelete('cascade');
}
}