Use HASH KEY instead of id for ids in indexes.
Merge remote-tracking branch 'origin/fix_index' into staging