Open ipearx opened 2 years ago
Hey,
I work with multiple database access and the best way to work with this is to switch your default connection i.e. DB::setDefaultConnection($instance)
, do the transaction and then switch it back.
For migrations, you pass in the --database
flag at the end.
Hi I can't seem to create a partition by range on a separate DB connection e.g.
gives the error:
Call to undefined method Illuminate\Database\Schema\MySqlBuilder::partitionByRange()
I'd say this would be a good feature to add if not yet implemented, as many using it will have a dedicated DB server. For me it means I'll have to remove the package and do it with a manual DB call.