finished migration script