lifecycle: close database connection after migrating (cherry-pick #9516) (#9531)

lifecycle: close database connection after migrating (#9516)

Signed-off-by: Jens Langhammer <jens@goauthentik.io>
Co-authored-by: Jens L <jens@goauthentik.io>
This commit is contained in:
gcp-cherry-pick-bot[bot]
2024-05-01 13:57:21 +02:00
committed by GitHub
parent b9936fe532
commit 0f6ece5eb7

View File

@ -117,6 +117,8 @@ def run_migrations():
)
finally:
release_lock(curr)
curr.close()
conn.close()
if __name__ == "__main__":