env variable to control mysql migrations

'safe' should be used in production