Skip to content

Commit 47b8887

Browse files
committed
feat: for schema tests, try to use pg_dump
1 parent 0572217 commit 47b8887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nix/tools/dbmate-tool.sh.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,9 @@ perform_dump() {
187187
local attempt=1
188188

189189
while [ $attempt -le $max_attempts ]; do
190-
echo "Attempting dbmate dump (attempt $attempt/$max_attempts)"
190+
echo "Attempting pg_dump (attempt $attempt/$max_attempts)"
191191

192-
if dbmate dump; then
192+
if "${PSQLBIN}/pg_dump" -h localhost -p "$PORTNO" -U "$PGSQL_SUPERUSER" -d postgres --schema-only --no-owner --no-privileges > "./db/schema.sql"; then
193193
return 0
194194
fi
195195

0 commit comments

Comments
 (0)