Ezra Ezra - 2 years ago 170
PHP Question

Laravel - Foreign key constraint is incorrectly formed?


I thought I had everything working, until I added this last foreign key to the feedback table.

I can't see anything wrong with it, help?

Line 31 is the issue apparently?

The table type is innodb running MariaDB 10.0.8. Several other foreign keys are set successfully earlier in the same way. The table the FK references does exist before this one tries to be set.

Looked at most of the answers of similar on here, no fix so far. :(

Answer Source

I believe I had not set the foreign key to unsigned().

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download