Fix too long indices in migrations