]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/dbconn.py
Allow use with SQLAlchemy 0.7
[dak.git] / daklib / dbconn.py
index dac0675d3a20772dc9606a98f4e021280726b531..fd2ea345a31942e882786bb36d9b872f8ec2f382 100755 (executable)
@@ -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")
 
 ################################################################################