fix: oops
All checks were successful
migrate-devel / migrate-devel (push) Successful in 3s
migrate-stage / migrate-stage (push) Successful in 4s

This commit is contained in:
Orion Kindel 2023-07-15 22:45:14 -04:00
parent eba0043159
commit 202de79400
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -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"