Deactivate maintenance only if migrations exist