]> git.openstreetmap.org Git - nominatim.git/commitdiff
commit between migrations
authorSarah Hoffmann <lonvia@denofr.de>
Sat, 1 May 2021 08:28:49 +0000 (10:28 +0200)
committerSarah Hoffmann <lonvia@denofr.de>
Sat, 1 May 2021 08:47:35 +0000 (10:47 +0200)
Later migrations may require tables set up by older ones.

nominatim/tools/migration.py

index 0396ff8765b4c97c14d68b722b0e57fa67dee597..ddf25cd91ba30307fef2c4d2ee65cae2a38596ce 100644 (file)
@@ -44,6 +44,7 @@ def migrate(config, paths):
                             '{0[0]}.{0[1]}.{0[2]}-{0[3]}'.format(version))
                 kwargs = dict(conn=conn, config=config, paths=paths)
                 func(**kwargs)
+                conn.commit()
                 has_run_migration = True
 
         if has_run_migration: