Fix foreign key types in migrations