updated deploy.py to migrate during deploy runs