]> git.decadent.org.uk Git - dak.git/commitdiff
SQLAlchemy version 1.0 might also be okay
authorAnsgar Burchardt <ansgar@debian.org>
Tue, 1 Dec 2015 22:29:41 +0000 (23:29 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Tue, 1 Dec 2015 22:29:41 +0000 (23:29 +0100)
Maybe this check should eventually be dropped?

daklib/dbconn.py

index c792ff5a7e48e18f78cb00d1bc93863aca24855a..3a7f55bbe942df3db4807865dd28a7bf2203627a 100755 (executable)
@@ -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)
 
 ################################################################################