From: Mark Hymers Date: Sun, 19 Sep 2010 14:42:14 +0000 (+0000) Subject: Seems to work with 0.6 too X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=bdeefe4f011355a4c088d516284656c8503e8137;p=dak.git Seems to work with 0.6 too Signed-off-by: Mark Hymers --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 817afb26..2ec1b60c 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -72,11 +72,11 @@ class DebVersion(sqltypes.Text): return "DEBVERSION" sa_major_version = sqlalchemy.__version__[0:3] -if sa_major_version == "0.5": +if sa_major_version in ["0.5", "0.6"]: from sqlalchemy.databases import postgres postgres.ischema_names['debversion'] = DebVersion else: - raise Exception("dak isn't ported to SQLA versions != 0.5 yet. See daklib/dbconn.py") + raise Exception("dak only ported to SQLA versions 0.5 and 0.6. See daklib/dbconn.py") ################################################################################