From 202de7940069b5b6c39ded74b37313cccb5aa741 Mon Sep 17 00:00:00 2001 From: Orion Kindel Date: Sat, 15 Jul 2023 22:45:14 -0400 Subject: [PATCH] fix: oops --- scripts/migrate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/migrate.sh b/scripts/migrate.sh index f30de2b..c8fb8bd 100755 --- a/scripts/migrate.sh +++ b/scripts/migrate.sh @@ -23,7 +23,7 @@ if [[ "$dnim_database_count" = "0" ]]; then else get_last_revision="copy (select to_revision from migration order by performed_on desc limit 1) to stdout with null as '';" last_revision=$(psql "$POSTGRES_URI/dnim" -c "$get_last_revision") - migration_file=$(./scripts/diff.sh "$last_revision" "$tag") + migration_file=$(./scripts/diff.sh "$last_revision" "$to_tag") if [[ "$2" = "--greenlight" ]]; then psql "$POSTGRES_URI/dnim" -v ON_ERROR_STOP=1 --single-transaction -f "$migration_file"