From 4feaf552e17e3f51e3c6e76e6eb4a7f068167e89 Mon Sep 17 00:00:00 2001 From: EliseCastle23 <109446148+EliseCastle23@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:02:37 -0700 Subject: [PATCH] updating alembic logic to work with the new al images that manage alembic through poetry (#2663) --- kube/services/wts/wts-deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kube/services/wts/wts-deploy.yaml b/kube/services/wts/wts-deploy.yaml index a3e63f19b..c6c4ffe74 100644 --- a/kube/services/wts/wts-deploy.yaml +++ b/kube/services/wts/wts-deploy.yaml @@ -163,7 +163,7 @@ spec: args: - "-c" - | - if hash alembic 2>/dev/null; then + if hash alembic 2>/dev/null || poetry run alembic --version >/dev/null 2>&1; then echo "Running DB migration" cd /wts # Managing virtual environments via poetry instead of python since the AL base image update, but retaining backwards compatibility