Closed shez1983 closed 1 year ago
Howdy.
Took me a while to parse your issue here to figure out, what you're trying to tell me, but I see the issue now. :)
Can confirm that we have a bug here, as we assume that the database connection name equals the database driver name.
That obviously doesn't work if someone adds a connection name like restore-db
. Will fix this right away.
so i have the default mysql connection, but i created a new connection for external mysql db
the issue is this file:
vendor/wnx/laravel-backup-restore/src/DbImporterFactory.php
the function createFromConnection, checks
and then proceeds to do this:
which seems wrong, surely you should be checking for the driver inside that config?
So for now I have changed this to:
but obv this will break if you decide to update your repo..