SONAR-5007 fix db migration