-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When using the RefreshDatabase trait, the foreign constraint for best_reply_id wasn’t working properly. Can’t figure out why. Switching to the DatabaseMigrations trait did the trick.
- Loading branch information
1 parent
7527db8
commit 1e49355
Showing
3 changed files
with
5 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1e49355
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem for this was on Laravel side. RefreshDatabase trait was duplicating transactions.
The fix: https://github.com/laravel/framework/pull/23132/files
More read: laravel/framework#23126
This bus should be fixed on Laravel 5.6.4
1e49355
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah okay, good to know. That was a confusing one. :)