migrate and restart after deployments