The fix in commit 2cb5019d521c404f512d6a7cdd1ff6e51e54a54e changed primary key to bigint, which is wrong, foreign key data type should be fix instead. Foreign key data type follow primary key data type, not the other way round.