Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Fixes constructable migrations #46223

Merged
merged 2 commits into from
Feb 22, 2023

Conversation

nunomaduro
Copy link
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