lifecycle: fix postgresql port not being passed for migrations

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-16 12:04:36 +02:00
parent ae77c872a0
commit 89fafff0af

View file

@ -40,6 +40,7 @@ if __name__ == "__main__":
user=CONFIG.y("postgresql.user"), user=CONFIG.y("postgresql.user"),
password=CONFIG.y("postgresql.password"), password=CONFIG.y("postgresql.password"),
host=CONFIG.y("postgresql.host"), host=CONFIG.y("postgresql.host"),
port=int(CONFIG.y("postgresql.port")),
) )
curr = conn.cursor() curr = conn.cursor()
# lock an advisory lock to prevent multiple instances from migrating at once # lock an advisory lock to prevent multiple instances from migrating at once