From: Ansgar Burchardt Date: Sun, 6 May 2012 15:36:32 +0000 (+0200) Subject: Allow use with SQLAlchemy 0.7 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=5ccdc44b42b2b56a0d70cd451dbd017af40bd006;p=dak.git Allow use with SQLAlchemy 0.7 --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index dac0675d..fd2ea345 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -110,11 +110,11 @@ class DebVersion(UserDefinedType): return None sa_major_version = sqlalchemy.__version__[0:3] -if sa_major_version in ["0.5", "0.6"]: +if sa_major_version in ["0.5", "0.6", "0.7"]: from sqlalchemy.databases import postgres postgres.ischema_names['debversion'] = DebVersion else: - raise Exception("dak only ported to SQLA versions 0.5 and 0.6. See daklib/dbconn.py") + raise Exception("dak only ported to SQLA versions 0.5 to 0.7. See daklib/dbconn.py") ################################################################################