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

Bad DB Credentials and no errors #51

Closed
ousamabenyounes opened this issue Apr 29, 2017 · 4 comments
Closed

Bad DB Credentials and no errors #51

ousamabenyounes opened this issue Apr 29, 2017 · 4 comments
Assignees

Comments

@ousamabenyounes
Copy link
Contributor

ousamabenyounes commented Apr 29, 2017

Hi @krzysiekpiasecki ,

I'm beginning using your gentelella symfony ready to use skeleton application...
Thanks a lot again for all the team for your really nice work :).
I installed this repository. I ran doctrine commands, but my credentials were wrong.
No errors occured. Maybe we should try to check if db credentials are ok before running all scripts.

So I got "Database has been created ..." which was a wrong information when I checked the database.

<exec command="php bin/console doctrine:database:create --if-not-exists"/> <echo msg="Database has been created ..." />

Regards,
Ousama.

@krzysiekpiasecki
Copy link
Owner

krzysiekpiasecki commented Apr 30, 2017

Run the command php vendor/bin/phing -verbose

You should see then such an exception

-- [Doctrine\DBAL\Driver\PDOException] [exec] SQLSTATE[HY000]: General error: 1364 Field 'locked' doesn't have a default value

It comes from changes in UserBundle library.

@ousamabenyounes
Copy link
Contributor Author

Thank you for this feedback.
I was just asking if it was possible to add check on build.
If a step fail then tell user stepXXXX failed :).

I will have a look on it and if I have some news I'll open a pull request.

Regards

@krzysiekpiasecki
Copy link
Owner

@ousamabenyounes At the moment --verbose parameter is the only road map. PR always welcome.

May I ask you that you close this ticket if you haven't got any notices?

@ousamabenyounes
Copy link
Contributor Author

Thank you for your feedback

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

2 participants