Updated migration script