Skip to content

[Issue]: constrained unversionedForeign being duplicated #38

@kfriars

Description

@kfriars

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions