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

Schema param in the .env file #2483

Closed
crazoid opened this issue Jan 10, 2020 · 3 comments
Closed

Schema param in the .env file #2483

crazoid opened this issue Jan 10, 2020 · 3 comments

Comments

@crazoid
Copy link

crazoid commented Jan 10, 2020

For postgres db doesn't work for 'php spark migrate' command.
The 'migrations' table and the table specified in migration is always created in public schema and not in the schema specified in the .env file.
Correct migration only works by specifying database schema directly in the app\Config\Database.php file.

@lonnieezell
Copy link
Member

Please provide the code you tried using in .env.

@crazoid
Copy link
Author

crazoid commented Jan 13, 2020

Please provide the code you tried using in .env.

database.default.hostname = localhost
database.default.database = development
database.default.schema = system
database.default.username = postgres
database.default.password = 123
database.default.DBDriver = postgre
database.default.port = 5432

@lonnieezell
Copy link
Member

i'm more familiar with MySQL/MariaDB than Postres. The 2 things that catch my eye are:

  1. the DBDriver should be capitalized: Postgre.
  2. I often have to change from localhost to 127.0.0.0. Usually that throws an exception, though, not refuses to acknowledge the settings.

My only other thought would be to make sure the file is .env, not env (the leading period is important).

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

No branches or pull requests

2 participants