Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php artisan migrate doesnt work without in docker workspace #3374

Open
MakFly opened this issue Apr 13, 2023 · 3 comments
Open

php artisan migrate doesnt work without in docker workspace #3374

MakFly opened this issue Apr 13, 2023 · 3 comments

Comments

@MakFly
Copy link

MakFly commented Apr 13, 2023

I would like to understand why if I'm not in the docker workspace I can't do php artisan migrate without it giving me this error:
Unable to find driver (SQL: select * from information_schema.tables where table_catalog=api_satt and table_schema=public and table_name=migrations and table_type='BASE TABLE')

@theia-kevin
Copy link

@MakFly

for laradock:
set WORKSPACE_INSTALL_MYSQL_CLIENT=true

for your laravel project:
set DB_HOST=mysql

@kilwir76
Copy link

kilwir76 commented May 2, 2023

THANKS ! but i am using postgresql as database , its working ?

@andrekutianski
Copy link
Contributor

THANKS ! but i am using postgresql as database , its working ?

In WORKSPACE section:

WORKSPACE_INSTALL_PG_CLIENT=true

In PHP_FPM section:

PHP_FPM_INSTALL_PG_CLIENT=true
PHP_FPM_INSTALL_PGSQL=true

In PHP_WORKER section:

PHP_WORKER_INSTALL_PGSQL=true

PHP_WORKER does not have PG_CLIENT installation step and WORKSPACE does not have PGSQL instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants