Answer the question
In order to leave comments, you need to log in
How to make migrate:fresh for multiple connections?
The project uses two databases. now with migrate:fresh the tables of the first database are dropped, but not in the second database. To drop the second database you need to use --database with a connection.
Whether it is possible to adjust somehow that at migrate:fresh tables both in the first and in the second database were dropped? without a connection?
Answer the question
In order to leave comments, you need to log in
Write a sh file or an artisan console command that will run these two commands as you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question