Skip to content

Conversation

@SRWieZ
Copy link
Member

@SRWieZ SRWieZ commented Dec 4, 2024

Fixes NativePHP/nativephp.com#65

This pull request defer the execution of rewriteDatabase from register to the boot method of the service provider.

Previously, we encountered an error at launch that silently failed for all subsequent executions. Even though the execution of Artisan::call('native:migrate') failed, the nativephp.sqlite file was still created.

Database was created but not migrated because the Migrator class was not resolved in the register phase of service providers.

Capture d’écran 2024-12-04 à 11 42 08

@simonhamp simonhamp merged commit 5bb2e17 into NativePHP:main Dec 18, 2024
21 checks passed
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