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

[10.x] Streamline DatabaseMigrations and RefreshDatabase events #49153

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

crynobone
Copy link
Member

Add the moment both DatabaseMigrations and RefreshDatabase trait uses $this->artisan('migrate:fresh', $this->migrateFreshUsing()); but only RefreshDatabase uses beforeRefreshDatabase() and afterRefreshDatabase().

I believe we should streamline the usage to make it easier to toggle between the two traits depending on requirements.

Use available method from `RefreshDatabase::afterRefreshingDatabase()`

Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
@taylorotwell taylorotwell merged commit 1e03a4a into 10.x Nov 28, 2023
22 checks passed
@taylorotwell taylorotwell deleted the test-database-migration-event branch November 28, 2023 15:22
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.

None yet

2 participants