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"