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

acme:task:initialize cause error #7

Open
igormukhingmailcom opened this issue Apr 29, 2015 · 0 comments
Open

acme:task:initialize cause error #7

igormukhingmailcom opened this issue Apr 29, 2015 · 0 comments

Comments

@igormukhingmailcom
Copy link

Hi.

This is command output:

Created database for connection named `cqrs_write`
ATTENTION: This operation should not be executed in a production environment.

Creating database schema...
Database schema created successfully!

  [PDOException]                                       
  SQLSTATE[42000] [1049] Unknown database 'cqrs_read'

Note that I have different databases cqrs_write and cqrs_read, not default one acmecqrs.

Possible solution is to add 'doctrine:database:create' => array('--connection' => 'read'), to InitializeApplicationCommand.php, but only when db_read_name != db_write_name.

igormukhingmailcom added a commit to igormukhingmailcom-forks/symfony-cqrs-edition that referenced this issue Apr 29, 2015
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

1 participant