lifecycle: close database connection after migrating (#9516)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@ -117,6 +117,8 @@ def run_migrations():
|
|||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
release_lock(curr)
|
release_lock(curr)
|
||||||
|
curr.close()
|
||||||
|
conn.close()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user