updated the migration scripts due to trunk changes from mdouglas