Hi, I have an application which use two connections:
- MySQL for local needs (connection "mysql")
- PostgreSQL for getting remote data (connection "psql_tunnel")
I use your package to work with my psql_tunnel connection, when I switch schema it work but if I make a check before it doesn't.
if (PGSchema::schemaExists('xxxx'.$tenant, env('xxxx', 'pgsql_tunnel'))) {
PGSchema::schema('xxxx'.$tenant, env('xxxx', 'pgsql_tunnel'));
} else {
dd('schema does not exists');
}
if I switch without check, it works:
PGSchema::schema('xxxx'.$tenant, env('xxxx', 'pgsql_tunnel'));
Thank you.