kitloong / laravel-migrations-generator

Laravel Migrations Generator: Automatically generate your migrations from an existing database schema.
MIT License
2.44k stars 270 forks source link

generate migrations for a connection but skip connection name into output #145

Closed scramatte closed 1 year ago

scramatte commented 1 year ago

Hi,

I need generate migrations for a specific connection but skip connection name into output. How can I achieve it?

Regards

kitloong commented 1 year ago

Hi @scramatte , to output with the default connection, you can temporarily set your default connection to the specific connection you wish to generate.

For instance,

DB_CONNECTION=specific_connection php artisan migrate:generate