Fix migration to work on azure database
Merge branch 'hotfix-0.1.7'