hpaknia
hpaknia

Reputation: 3118

Laravel/Lumen 5.3: How to set separate database user configuration on migrations

Generally, letting application to change database schema is not a good idea (at least from some dbas point of view!)

So is there any workaround to use separate database user which has enough schema update privileges for php artisan migrate command?

Upvotes: 2

Views: 179

Answers (1)

ssuhat
ssuhat

Reputation: 7656

You can always set the connection on migration. for example:

Schema::connection('myotherconnection')->create('some_table', function($table)
{
     $table->increments('id'):
});

Upvotes: 1

Related Questions