Running Tests with PostgreSQL with multiple schemas #51244
Unanswered
gsoareslima
asked this question in
Q&A
Replies: 1 comment
-
To specify multiple PostgreSQL schemas in your
'pgsql' => [
'driver' => 'pgsql',
'host' => env('DB_HOST', '127.0.0.1'),
// ... other default settings ...
'search_path' => 'public,esus', // Your solution here
'sslmode' => 'prefer',
], |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys.
If anyone could help me I would be very grateful.
I'm trying to create tests with Pest and I'm getting the following error:
Currently I am using a database called 'testing' in PostgreSQL itself as a test bench, and I noticed that 'Illuminate\Foundation\Testing\RefreshDatabase' is not dropping tables that are in a different schema than public.
My database.php looks like this:
And my migration:
Beta Was this translation helpful? Give feedback.
All reactions