domain.py: Make schemaupgrade option work regardless of config