Replies: 1 comment 2 replies
-
Hi, Can't you runt it with a -Y or --Y flag so it answers yes to all possible questions? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to create a bash script that I can call to migrate a local sqlite database, or create it if it's missing.
Currently, when I run it,
php artisan migrate
, and the file doesn't exist, it asks me:And that's a nice feature for a user interface, but that doesn't work well in a non-interactive mode such as in a bash script. When I use
--no-interaction
flag, then it just fails:I think it would be better if the file was just created. If it doesn't exist, then it's great.
I know I can use
--force
, but I don't want to put--force
in my bash script, because if I do, and I mistakenly run it in production, it would wipe my production database, so I like the production warning. I don't want to use--force
.Beta Was this translation helpful? Give feedback.
All reactions