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

Bug: db:create command should create database even database not exists yet, and defined in .env #4498

Closed
samsonasik opened this issue Mar 27, 2021 · 0 comments · Fixed by #4500
Labels
bug Verified issues on the current code behavior or pull requests that will fix them

Comments

@samsonasik
Copy link
Member

samsonasik commented Mar 27, 2021

Direction
We use github issues to track bugs, not for support.
If you have a support question, or a feature request, raise these as threads on our
forum.

Describe the bug

For example, there is .env file:

database.default.hostname = localhost
database.default.database = db_name
database.default.username = root
database.default.password = root123456
database.default.DBDriver = MySQLi

And command :

php spark db:create db_name

will throw exception if db_name not exists yet as used in .env as connection configuration.

The current solution is by comment the database.default.database:

# database.default.database = db_name

CodeIgniter 4 version
4.1.1

Affected module(s)
Database

Expected behavior, and steps to reproduce if appropriate

It should works without need uncomment database config in .env.

Context

  • OS: MacOS Big Sur
  • On CLI
  • PHP version 7.4
@samsonasik samsonasik added the bug Verified issues on the current code behavior or pull requests that will fix them label Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Verified issues on the current code behavior or pull requests that will fix them
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant