From: Ansgar Burchardt Date: Sun, 4 May 2014 22:02:29 +0000 (+0200) Subject: daklib/dbconn.py: SQLAlchemy 0.9 is also fine. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=7c73ca0018de48b6366b0e26c37439f20ff4b2d5;p=dak.git daklib/dbconn.py: SQLAlchemy 0.9 is also fine. --- diff --git a/daklib/dbconn.py b/daklib/dbconn.py index 7a1fcb22..98830936 100644 --- 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"]: +if sa_major_version in ["0.5", "0.6", "0.7", "0.8", "0.9"]: from sqlalchemy.databases import postgres postgres.ischema_names['debversion'] = DebVersion else: - raise Exception("dak only ported to SQLA versions 0.5 to 0.8. See daklib/dbconn.py") + raise Exception("dak only ported to SQLA versions 0.5 to 0.9. See daklib/dbconn.py") ################################################################################