From 7b03e72c7eabe8d74819a53f499d552b55e6399d Mon Sep 17 00:00:00 2001 From: shubham-yb Date: Tue, 7 Jan 2025 06:57:20 +0000 Subject: [PATCH] Fix PG tests for assess-export --- migtests/tests/upgrade-tests/assess-export/after | 6 ++++++ migtests/tests/upgrade-tests/assess-export/before | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/migtests/tests/upgrade-tests/assess-export/after b/migtests/tests/upgrade-tests/assess-export/after index 32e52d1fe..2b30c9eff 100644 --- a/migtests/tests/upgrade-tests/assess-export/after +++ b/migtests/tests/upgrade-tests/assess-export/after @@ -12,6 +12,12 @@ "${TEST_DIR}/fix-schema" fi + if [ "${MOVE_PK_FROM_ALTER_TO_CREATE}" = true ] ; then + "${SCRIPTS}/add-pk-from-alter-to-create" + fi + + cat ${EXPORT_DIR}/schema/tables/INDEXES_table.sql + step "Import schema." import_schema --continue-on-error true run_ysql ${TARGET_DB_NAME} "\dt" diff --git a/migtests/tests/upgrade-tests/assess-export/before b/migtests/tests/upgrade-tests/assess-export/before index 8d00fa1dd..cd1c5517f 100644 --- a/migtests/tests/upgrade-tests/assess-export/before +++ b/migtests/tests/upgrade-tests/assess-export/before @@ -16,6 +16,4 @@ cat_log_file "yb-voyager-assess-migration.log" exit 1 fi - - post_assess_migration fi