Database migration error FOREIGN KEY constraint

I’ve just replied here giving a bit more context about the issue: it is the same issue