SONAR-5082 - Fixed Migration script