Queries work fine on local but I'm somehow getting "Could not find driver connection"

Queries work fine on local (sqlite) but I'm somehow getting "Could not find driver connection: , SQL: ..." error in production (pgsql) in squire model package
No description
Solution:
GitHub
How to install and use? · squirephp squire · Discussion #13
Hi, at the moment I try to figure out how to use the project in my application. I followed the instructions by installing squire via composer require squirephp/countries-en The instruction says, th...
Jump to solution
8 Replies
Shaung Bhone
Shaung BhoneOP3mo ago
Please help Tomorrow is the deadline to ship to my customer. I can't expect that error. I have to create a currency table or sth? In my local don't need to create table for that!
ModestasV
ModestasV3mo ago
Did you run php artisan migrate in your production server?
Shaung Bhone
Shaung BhoneOP3mo ago
Bro yes of course
ModestasV
ModestasV3mo ago
I mean, you can't be too cautious 🙂 And this error seems like a missing migration. If you are sure that you ran it - then check that the migration file is loaded and is inside the database. Then check that the table exists inside your database
Shaung Bhone
Shaung BhoneOP3mo ago
currencies table does not have local as well local is working with sqlite but production with pgsql (not)
Solution
ModestasV
ModestasV3mo ago
GitHub
How to install and use? · squirephp squire · Discussion #13
Hi, at the moment I try to figure out how to use the project in my application. I followed the instructions by installing squire via composer require squirephp/countries-en The instruction says, th...
ModestasV
ModestasV3mo ago
It seems that they use cached sqlite database model, which would not be present in the production (since storage is in gitignore). Try to run setup command in prod and see if it works
Shaung Bhone
Shaung BhoneOP3mo ago
let me check thank you so much

Did you find this page helpful?