From: Ansgar Burchardt Date: Tue, 1 Dec 2015 22:29:41 +0000 (+0100) Subject: SQLAlchemy version 1.0 might also be okay X-Git-Url: https://git.decadent.org.uk/gitweb/?p=dak.git;a=commitdiff_plain;h=2f088e5dee718229e9dfa395e47f09809abdda2c SQLAlchemy version 1.0 might also be okay Maybe this check should eventually be dropped? --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c792ff5a..3a7f55bb 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -109,11 +109,11 @@ class DebVersion(UserDefinedType): return None sa_major_version = sqlalchemy.__version__[0:3] -if sa_major_version in ["0.5", "0.6", "0.7", "0.8", "0.9"]: +if sa_major_version in ["0.5", "0.6", "0.7", "0.8", "0.9", "1.0"]: from sqlalchemy.databases import postgres postgres.ischema_names['debversion'] = DebVersion else: - raise Exception("dak only ported to SQLA versions 0.5 to 0.9 (%s installed). See daklib/dbconn.py" % sa_major_version) + raise Exception("dak only ported to SQLA versions 0.5 to 1.0 (%s installed). See daklib/dbconn.py" % sa_major_version) ################################################################################