update script and test index migration