![featured-key.webp](/en/laravel/troubleshooting/laravel-migration-foreign-key-incorrectly-formed/featured-key.webp)
Sometimes when running a Laravel Migration you get the error: errno 150 "Foreign key constraint is incorrectly formed"
. This error is mainly caused because your foreign key column is declared in a different data type that is the related key column on source table.