Create the migration you need for the other connections yourself. And as the previous question make sure you pass that connection when migrating.
How 'migrations' table works in Laravel?
I have 3 connections configured on my application each one with a different database:
-
mysql -
mysql_connection2 -
mysql_connection3
Currently i'm only using mysql_connection2 and mysql_connection3, i migrated some tables to these two connections that are located in different folders using the commands:
-
php artisan migrate --path=database/migrations/connection2 -
php artisan migrate --path=database/migrations/connection3
So the issue here is, i couldn't find the migrations table, Laravel just didn't created the migrations table in these two connections, so looking for that i found the migrations table on my first connection database mysql, so can someone explain me how migrations table works? And how can i specify to Laravel create one migration to each connection when i migrate my tables?
Please or to participate in this conversation.