Lwin Maung Maung

My Notes and Blogs

Home Laravel Linux

General error: 3780 Referencing column in laravel

Published on  Dec 1st, 2023Updated:  Jun 19th, 2024
1 mins Read

The error occured when there is two migration files between old Laravel and new Laravel codes. 

I do it especially on Laravel 5 and it is migrated into laravel 10, and the debt is I didn't change the column length. So, when I do reference table. The problem occur.

The solution is change the id into BigUnsignedInteger or Laravel future compatible id and reference it. 

© lwinmaungmaung MMXXIII. All Rights Reserved.