From 00ca9671f111baed2954046800b47f94aaf81dc0 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Fri, 2 Jul 2021 19:56:42 +0200 Subject: [PATCH] [#1920] Fix in PgSQL tests Suggested in review to make it consistent with MySQL test. --- src/bin/admin/tests/pgsql_tests.sh.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bin/admin/tests/pgsql_tests.sh.in b/src/bin/admin/tests/pgsql_tests.sh.in index 3445457440..74f9a3a22b 100644 --- a/src/bin/admin/tests/pgsql_tests.sh.in +++ b/src/bin/admin/tests/pgsql_tests.sh.in @@ -553,6 +553,7 @@ pgsql_upgrade_schema_to_version() { for script in "${db_scripts_dir}"/pgsql/upgrade*.sh do + version=$(pgsql_version) if [ "${version}" = "${target_version}" ] then break @@ -560,8 +561,6 @@ pgsql_upgrade_schema_to_version() { echo "Processing $script file..." "${script}" -U "${db_user}" -d "${db_name}" - - version=$(pgsql_version) done echo "Schema upgraded to $version"