[Git][qa/jenkins.debian.net][master] t.r-b.o/d: continue WIP, add forky, need sqlalchemy help here

Holger Levsen (@holger) gitlab at salsa.debian.org
Tue Aug 12 15:49:39 BST 2025



Holger Levsen pushed to branch master at Debian QA / jenkins.debian.net


Commits:
ae035710 by Holger Levsen at 2025-08-12T16:49:33+02:00
t.r-b.o/d: continue WIP, add forky, need sqlalchemy help here

Signed-off-by: Holger Levsen <holger at layer-acht.org>

- - - - -


1 changed file:

- bin/reproducible_db_maintenance.py


Changes:

=====================================
bin/reproducible_db_maintenance.py
=====================================
@@ -848,7 +848,7 @@ schema_updates = {
 
 
 def table_exists(tablename):
-    DB_METADATA.reflect()
+    DB_METADATA.reflect(DB_ENGINE)
     if tablename in DB_METADATA.tables:
         return True
     else:
@@ -892,7 +892,7 @@ def db_update():
                                '  the last update available.\nPlease check!')
         sys.exit(1)
     log.info('Found schema updates.')
-    Session = sessionmaker(bind=DB_ENGINE, autocommit=True)
+    Session = sessionmaker(bind=DB_ENGINE)
     session = Session()
     for update in range(current+1, last+1):
         log.info('Applying database update #' + str(update) + '. Queries:')



View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ae0357100b01359c3453b1b8e18492563a984e9b

-- 
View it on GitLab: https://salsa.debian.org/qa/jenkins.debian.net/-/commit/ae0357100b01359c3453b1b8e18492563a984e9b
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/qa-jenkins-scm/attachments/20250812/a0f9eede/attachment-0001.htm>


More information about the Qa-jenkins-scm mailing list