Skip to content

Commit b8daa29

Browse files
authored
fix: remove fdw grant option from schema dump (#4664)
1 parent 14b8a3c commit b8daa29

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/migration/scripts/dump_schema.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ pg_dump \
4444
| sed -E 's/^ALTER PUBLICATION "supabase_realtime_/-- &/' \
4545
| sed -E 's/^ALTER FOREIGN DATA WRAPPER (.+) OWNER TO /-- &/' \
4646
| sed -E 's/^ALTER DEFAULT PRIVILEGES FOR ROLE "supabase_admin"/-- &/' \
47+
| sed -E 's/^GRANT ALL ON FOREIGN DATA WRAPPER (.+) TO "postgres" WITH GRANT OPTION/-- &/' \
4748
| sed -E "s/^GRANT (.+) ON (.+) \"(${EXCLUDED_SCHEMAS:-})\"/-- &/" \
4849
| sed -E "s/^REVOKE (.+) ON (.+) \"(${EXCLUDED_SCHEMAS:-})\"/-- &/" \
4950
| sed -E 's/^(CREATE EXTENSION IF NOT EXISTS "pg_tle").+/\1;/' \

0 commit comments

Comments
 (0)