Skip to content

[9.x] Fixes constructable migrations#46223

Merged
taylorotwell merged 2 commits into9.xfrom
fix/migrator-on-constructable-instances
Feb 22, 2023
Merged

[9.x] Fixes constructable migrations#46223
taylorotwell merged 2 commits into9.xfrom
fix/migrator-on-constructable-instances

Conversation

@nunomaduro
Copy link
Copy Markdown
Member

This pull request addresses two issues. Firstly, it ensures that constructable migrations (migrations with __construct methods) are properly instantiated when a __construct is present, and if not, it simply reuses the previously created instance for performance and memory reasons. Secondly, it resolves an issue with telescope migrations that were holding a reference to the PDO Sqlite memory connection and preventing it from being dropped after each test.

This PR fixes the following: #46205, laravel/passport#1639.

@driesvints This fix needs to ported to 10.x

@taylorotwell taylorotwell merged commit 0045c8a into 9.x Feb 22, 2023
@taylorotwell taylorotwell deleted the fix/migrator-on-constructable-instances branch February 22, 2023 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants