Skip to content

Commit

Permalink
Added conditional check while dropping the database
Browse files Browse the repository at this point in the history
  • Loading branch information
shubham-yb committed Jan 6, 2025
1 parent a14fa6b commit 20c2715
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion migtests/scripts/resumption.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ main() {
if [ -f "${TEST_DIR}/generate_config.py" ]; then
rm config.yaml
fi
run_psql postgres "DROP DATABASE ${SOURCE_DB_NAME};"
if [ -n "${SOURCE_DB_NAME}" ]; then
run_psql postgres "DROP DATABASE ${SOURCE_DB_NAME};"
fi
run_ysql yugabyte "DROP DATABASE IF EXISTS ${TARGET_DB_NAME};"
}

Expand Down

0 comments on commit 20c2715

Please sign in to comment.