fix: diff
All checks were successful
migrate-devel / migrate-devel (push) Successful in 8s

This commit is contained in:
Orion Kindel 2023-07-15 18:37:48 -04:00
parent c83a4cece6
commit bf5003844d
Signed by untrusted user who does not match committer: orion
GPG Key ID: 6D4165AE4C928719

View File

@ -28,10 +28,14 @@ if [[ ! -f "$migration" ]]; then
echo "migrate from $rev => HEAD" 1>&2
echo "BEGIN" > "$migration"
echo "do language plpgsql \$migration\$" >> "$migration"
echo "begin" >> "$migration"
echo >> "$migration"
migra --unsafe $base_url $head_url >> "$migration" \
|| echo "migra exited with code $?. this is /probably/ fine" 1>&2
echo "COMMIT;" > "$migration"
echo >> "$migration"
echo "end;" >> "$migration"
echo '$migration$;' >> "$migration"
fi
echo "$migration"