THINK-156 fix indexes on migration