Change migration code
Fix test