From 0a97a7905f5ca29b22adad21108bfd07d13d6910 Mon Sep 17 00:00:00 2001 From: Rajesh Rajendran Date: Fri, 11 Feb 2022 00:54:52 +0100 Subject: [PATCH] fix(upgrade): validate migration version Signed-off-by: Rajesh Rajendran --- scripts/helmcharts/openreplay/files/dbops.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/helmcharts/openreplay/files/dbops.sh b/scripts/helmcharts/openreplay/files/dbops.sh index 8929be5cd..b69d21db4 100644 --- a/scripts/helmcharts/openreplay/files/dbops.sh +++ b/scripts/helmcharts/openreplay/files/dbops.sh @@ -4,6 +4,9 @@ cd $(dirname $0) is_migrate=$1 +# Converting alphaneumeric to number. +PREVIOUS_APP_VERSION=`echo $PREVIOUS_APP_VERSION | cut -d "v" -f2` + function migration() { ls -la /opt/openreplay/openreplay db=$1