]> git.decadent.org.uk Git - dak.git/commitdiff
Convert dbconn.py to db upgrade #41.
authorTorsten Werner <twerner@debian.org>
Mon, 7 Feb 2011 22:07:53 +0000 (23:07 +0100)
committerTorsten Werner <twerner@debian.org>
Mon, 7 Feb 2011 22:07:53 +0000 (23:07 +0100)
The change is needed for sqlalchemy 0.5.

Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/dbconn.py

index 2237099d75eb296c44b95e478357c6d76ab82031..f0049a1a0c1addb7422bef47841cfff45218c9f9 100755 (executable)
@@ -2904,8 +2904,8 @@ class DBConn(object):
             # The following tables have primary keys but sqlalchemy
             # version 0.5 fails to reflect them correctly with database
             # versions before upgrade #41.
-            #'changes',
-            #'build_queue_files',
+            'changes',
+            'build_queue_files',
         )
 
         tables_no_primary = (
@@ -2920,8 +2920,8 @@ class DBConn(object):
             'suite_build_queue_copy',
             'udeb_contents',
             # see the comment above
-            'changes',
-            'build_queue_files',
+            #'changes',
+            #'build_queue_files',
         )
 
         views = (