commit between migrations

Later migrations may require tables set up by older ones.
This commit is contained in:
Sarah Hoffmann 2021-05-01 10:28:49 +02:00
parent 7fd871a74d
commit 36c624ec71

View 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: