What happened?
When using $table->unversionedForeignId('post_id')->constrained() it is attempting to create two FKs. It should only create one.
How to reproduce the bug
Create a snapshot migration using $table->unversionedForeignId('post_id')->constrained() and watch it fail due to duplicate foreign key name.
Package Version
10.2.1
PHP Version
8.2.0
Which operating systems does with happen with?
No response
Notes
Laravel 10.x
What happened?
When using
$table->unversionedForeignId('post_id')->constrained()it is attempting to create two FKs. It should only create one.How to reproduce the bug
Create a snapshot migration using
$table->unversionedForeignId('post_id')->constrained()and watch it fail due to duplicate foreign key name.Package Version
10.2.1
PHP Version
8.2.0
Which operating systems does with happen with?
No response
Notes
Laravel 10.x