Skip to content

Commit 60c244b

Browse files
committed
refactor: add restric key to pg dump
1 parent 637ddef commit 60c244b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,17 +99,15 @@ jobs:
9999
run: |
100100
pg_dump "$DATABASE_URL" \
101101
--exclude-table-data=storage.migrations \
102-
| grep -v '^\\restrict' \
103-
| grep -v '^\\unrestrict' \
102+
--restrict-key=test \
104103
> before.sql
105104
106105
psql "$DATABASE_URL" -c "DROP TABLE IF EXISTS storage.migrations;"
107106
npm run migration:run
108107
109108
pg_dump "$DATABASE_URL" \
110109
--exclude-table-data=storage.migrations \
111-
| grep -v '^\\restrict' \
112-
| grep -v '^\\unrestrict' \
110+
--restrict-key=test \
113111
> after.sql
114112
115113
diff before.sql after.sql || (echo 'Schema mismatch!'; exit 1)

0 commit comments

Comments
 (0)