separate migration code in several functions
Merge remote-tracking branch 'origin/master'