fix: oops
This commit is contained in:
parent
eba0043159
commit
202de79400
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user