Help :)
#60
Replies: 1 comment
-
Can you list out the steps you took to get to this error? Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I've installed the level up package and trying to use addPoints() but it spits out a SQL error relating to foreign keys.
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (
xxxxxxxx
.experiences
, CONSTRAINTexperiences_level_id_foreign
FOREIGN KEY (level_id
) REFERENCESlevels
(id
)).I've also setup the levels in the levels table 1 => 100 2=>200 etc.
What am I doing wrong here? thanks
Beta Was this translation helpful? Give feedback.
All reactions