Modified to prevent raising exception when turning off query cache on my...

...sql server with query cache already disabled

Successfully runs data migrations for Dalton