Skip to content

Commit 47d12a9

Browse files
committed
fix: test needs restrictkey handling
1 parent 41d7c48 commit 47d12a9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

migrations/schema-orioledb-17.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- PostgreSQL database dump
33
--
44

5-
\restrict 79HEbdwsnuTV5jafm4MHQLh2GGsZxFHgQRnGVoam7VcgeYtlp1T7eor8SQzYLHe
5+
\restrict SupabaseTestDumpKey123
66

77
-- Dumped from database version 17.6
88
-- Dumped by pg_dump version 17.6
@@ -1014,5 +1014,5 @@ CREATE EVENT TRIGGER pgrst_drop_watch ON sql_drop
10141014
-- PostgreSQL database dump complete
10151015
--
10161016

1017-
\unrestrict 79HEbdwsnuTV5jafm4MHQLh2GGsZxFHgQRnGVoam7VcgeYtlp1T7eor8SQzYLHe
1017+
\unrestrict SupabaseTestDumpKey123
10181018

nix/tools/dbmate-tool.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ perform_dump() {
182182

183183
# Only use --restrict-key for standard PostgreSQL 15 and 17 versions
184184
# OrioleDB doesn't support this flag yet
185-
if [ "$PSQL_VERSION" = "15" ] || [ "$PSQL_VERSION" = "17" ]; then
185+
if [ "$PSQL_VERSION" = "15" ] || [ "$PSQL_VERSION" = "17" ] || [ "$PSQL_VERSION" = "orioledb-17" ]; then
186186
# Use a fixed restrict key for reproducible test dumps
187187
# This is safe in testing contexts but should not be used in production
188188
dump_cmd="$dump_cmd --restrict-key=SupabaseTestDumpKey123"

0 commit comments

Comments
 (0)