You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preface: Not a major issue really, can be resolved after the fact and does not affect the rest of the installer.
Been experimenting with the installer to refactor some of my project to use it, and came across this quirk.
If one runs laravel new myproject, it will ask you which database to use, and run migrations, and warn you there is no database file and ask to create it.
However if you run laravel new myproject --database=sqlite --jet, it does not ask you if you'd like to run these migrations the first time, and so the second time when jetstream installs and asks to run migrate:fresh --force, it tries to run them without prompting to first create the database file, which errors for the migrations.
I've been reading through the installer, migrate and Jetstream installer source and I'm still not 100% certain why this happens, otherwise I'd have PR'd this to the appropriate repo.
Steps To Reproduce
Run laravel new --jet, get prompted for DB, get prompted to create DB, get prompted to rerun migrations on jetstream install, no issues, rest of installer proceeds as normal
Run laravel new --database=sqlite --jet, don't get prompted for DB, don't get prompted to create db, get prompted to rerun migrations on jetstream install, migrations fail, rest of installer proceeds as normal
The text was updated successfully, but these errors were encountered:
Installer Version
5.8.2
Description
Heyo.
Preface: Not a major issue really, can be resolved after the fact and does not affect the rest of the installer.
Been experimenting with the installer to refactor some of my project to use it, and came across this quirk.
If one runs
laravel new myproject
, it will ask you which database to use, and run migrations, and warn you there is no database file and ask to create it.However if you run
laravel new myproject --database=sqlite --jet
, it does not ask you if you'd like to run these migrations the first time, and so the second time when jetstream installs and asks to runmigrate:fresh --force
, it tries to run them without prompting to first create the database file, which errors for the migrations.I've been reading through the installer,
migrate
and Jetstream installer source and I'm still not 100% certain why this happens, otherwise I'd have PR'd this to the appropriate repo.Steps To Reproduce
laravel new --jet
, get prompted for DB, get prompted to create DB, get prompted to rerun migrations on jetstream install, no issues, rest of installer proceeds as normallaravel new --database=sqlite --jet
, don't get prompted for DB, don't get prompted to create db, get prompted to rerun migrations on jetstream install, migrations fail, rest of installer proceeds as normalThe text was updated successfully, but these errors were encountered: