dont include extensions in schema.sql to fix docker installation

master
Aevann 2023-08-04 16:13:05 +03:00
parent ed7289ef71
commit 1df0a1e291
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/bin/bash
. /e
pg_dump -O -x --schema-only "$DATABASE_URL" > '/d/schema.sql'
pg_dump -O -x --schema-only "$DATABASE_URL" | grep -v -E '^(CREATE\ EXTENSION|COMMENT\ ON)' > '/d/schema.sql'
pg_dump -O -x --data-only --inserts -t 'badge_defs' "$DATABASE_URL" >> "/d/seed-badges.sql"