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

SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails - on any request #48

Closed
awkwardusername opened this issue May 3, 2015 · 1 comment
Labels

Comments

@awkwardusername
Copy link
Collaborator

Caused by a feature in v2.2[5a2676c] because previously, api_key_id in the api_logs table is not nullable.

FIX is to set it obviously to nullable

@awkwardusername awkwardusername changed the title SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails - on any request May 3, 2015
@awkwardusername
Copy link
Collaborator Author

Created only for reference. Will be closed.

awkwardusername added a commit that referenced this issue May 3, 2015
NOTE: set api_key_id to nullable to fix issues regarding `SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails` errors as described in #48
awkwardusername referenced this issue May 3, 2015
Useful if we want to reference an API call to a transaction.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant