How can I delete tables from another database connection in laravel with php artisan migrate: fresh

0

I am working on a system where I need to connect to two databases, I was able to generate the connection so that at the time of migrations, I generated the tables in their respective database.

My problem starts when I try to delete them and migrate them again

send me an error, and I do not want to delete them manually. I want to delete them from this command php artisan migrate:fresh

This is my migration, in the bottom part I establish the connection, and the command

   public function down()
{
    Schema::connection('formatos')->dropIfExists('psicologos');

}

but it does not work, there will be some way to do it, thank you very much for your answers

    
asked by Julio Vásquez Díaz 21.05.2018 в 19:04
source

0 answers