From 2cee47a2f30132eba8f090e65ab7208981d59e4a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Fri, 2 Oct 2020 11:22:50 +0200 Subject: [PATCH] testdays: move on from db init to db upgrades upon redeploy Signed-off-by: Pierre-Yves Chibon --- .../openshift-apps/testdays/templates/deploymentconfig.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/openshift-apps/testdays/templates/deploymentconfig.yml b/roles/openshift-apps/testdays/templates/deploymentconfig.yml index f3b07da197..3960d8beb9 100644 --- a/roles/openshift-apps/testdays/templates/deploymentconfig.yml +++ b/roles/openshift-apps/testdays/templates/deploymentconfig.yml @@ -18,8 +18,10 @@ spec: failurePolicy: Abort execNewPod: containerName: testdays - command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"] -# command: ["python", "/opt/app-root/src/testdays/cli.py", "upgrade_db"] +# We only need to init the database the first time, after we just need to check +# for DB upgrades +# command: ["python", "/opt/app-root/src/testdays/cli.py", "init_db"] + command: ["python", "/opt/app-root/src/testdays/cli.py", "upgrade_db"] template: metadata: labels: