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] Prompt to create sqlite db when migrating #43867

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

timacdonald
Copy link
Member

@timacdonald timacdonald commented Aug 26, 2022

Papercut: If you use the SQLite driver and run migrations, you are often greeted with the following wall of hell:

Screen Shot 2022-08-26 at 3 53 35 pm

So often I find myself then copying the path and:

touch <paste-path>

Band-Aid: With this PR, we automate this process away AND retry the original migration, so you don't need to re-run php artisan migrate again:

Screen Shot 2022-08-26 at 3 55 09 pm

Note: The typo in this screen shot has been fixed.

If you select "no" or if the touch operation fails, you will still see the original exception message.

Options

# No prompt, just attempts to create the file.
# If it fails the exception is shown.

php artisan migrate --force

# No prompt and the exception is shown.
# This is the same as the current behaviour.

php artisan migrate --force

@timacdonald timacdonald force-pushed the create-sqlite-db branch 5 times, most recently from daf50fe to b6762d8 Compare August 26, 2022 06:10
@timacdonald timacdonald changed the title [9.x] Prompt to create sqlite db when migrating. [9.x] Prompt to create sqlite db when migrating Aug 26, 2022
@timacdonald timacdonald marked this pull request as ready for review August 26, 2022 06:20
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