Don't configure versioning when making the app

that is now happening as part of the `make_config()` call
This commit is contained in:
Lance Edgar 2018-07-31 14:08:38 -05:00
parent de6401c5db
commit cefadc7c27

View file

@ -2,7 +2,7 @@
################################################################################ ################################################################################
# #
# Rattail -- Retail Software Framework # Rattail -- Retail Software Framework
# Copyright © 2010-2017 Lance Edgar # Copyright © 2010-2018 Lance Edgar
# #
# This file is part of Rattail. # This file is part of Rattail.
# #
@ -34,7 +34,7 @@ import sqlalchemy as sa
import rattail.db import rattail.db
from rattail.config import make_config from rattail.config import make_config
from rattail.exceptions import ConfigurationError from rattail.exceptions import ConfigurationError
from rattail.db.config import get_engines, configure_versioning from rattail.db.config import get_engines
from rattail.db.types import GPCType from rattail.db.types import GPCType
from pyramid.config import Configurator from pyramid.config import Configurator
@ -87,8 +87,6 @@ def make_rattail_config(settings):
# unnecessary connections (and pooling limits). # unnecessary connections (and pooling limits).
rattail_config._session_factory = lambda: (tailbone.db.Session(), False) rattail_config._session_factory = lambda: (tailbone.db.Session(), False)
# Configure (or not) Continuum versioning.
configure_versioning(rattail_config)
return rattail_config return rattail_config