From 36c624ec7168052615adfbf8f44ecf7b96668f13 Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Sat, 1 May 2021 10:28:49 +0200 Subject: [PATCH] commit between migrations Later migrations may require tables set up by older ones. --- nominatim/tools/migration.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nominatim/tools/migration.py b/nominatim/tools/migration.py index 0396ff87..ddf25cd9 100644 --- a/nominatim/tools/migration.py +++ b/nominatim/tools/migration.py @@ -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: -- 2.39.5