aboutsummaryrefslogtreecommitdiffstats
path: root/policy-management/src/main/server-gen/bin
diff options
context:
space:
mode:
authorJorge Hernandez <jh1730@att.com>2017-10-19 14:09:51 -0500
committerJorge Hernandez <jh1730@att.com>2017-10-19 14:09:51 -0500
commit4dfaabe584f9208e03ab2b77274e6fdfdae007af (patch)
treeeb4c2d04a0e5505066d5b7e71e357f634e03bf79 /policy-management/src/main/server-gen/bin
parent1b55355558b07ea8231cbe23b0eaef27459d60b2 (diff)
fix migration when iterating through DBs
Change-Id: Ib243572c2395c9e122af3bff24d1fd8b89300166 Issue-ID: POLICY-357 Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'policy-management/src/main/server-gen/bin')
-rw-r--r--policy-management/src/main/server-gen/bin/db-migrator6
1 files changed, 4 insertions, 2 deletions
diff --git a/policy-management/src/main/server-gen/bin/db-migrator b/policy-management/src/main/server-gen/bin/db-migrator
index 328ad0b5..10240052 100644
--- a/policy-management/src/main/server-gen/bin/db-migrator
+++ b/policy-management/src/main/server-gen/bin/db-migrator
@@ -485,10 +485,10 @@ until [[ -z "$1" ]]; do
MIGRATION_DIR=$1
;;
-t|--target) shift
- TARGET_RELEASE=$1
+ INPUT_TARGET_RELEASE=$1
;;
-f|--from) shift
- CURRENT_RELEASE=$1
+ INPUT_CURRENT_RELEASE=$1
;;
-o|--operation) shift
OPERATION=$1
@@ -555,6 +555,8 @@ for dbPath in ${SCHEMA_S}; do
UPGRADE_DIR="${MIGRATION_DIR}"/"${SCHEMA}"/sql
DOWNGRADE_DIR=${UPGRADE_DIR}
METADATA_HISTORY="${METADATA_DB}.\`${SCHEMA}_history\`"
+ TARGET_RELEASE=${INPUT_TARGET_RELEASE}
+ CURRENT_RELEASE=${INPUT_CURRENT_RELEASE}
if is_upgrade && is_downgrade; then
echo "${SCHEMA}: failure: invalid configuration: ${UPGRADE_SQL_SUFFIX} and "\