migration script final