This commit is contained in:
Rikard Bartholf
2022-06-14 17:25:59 +02:00
parent c4e872b5d4
commit bf6680ecbe
+7 -2
View File
@@ -47,5 +47,10 @@ To write new inserts into the DB generate sql files with js in the src/**test**/
When you have the data you need in the db, write tests in all.test.ts file following the pattern already set.
---
pg_dump -U postgres --schema-only --no-owner --no-acl photowall > src/__test__/db/schema.sql
### Dump database scheme
pg_dump -U postgres \
--schema-only \
--no-owner \
--no-acl \
photowall > src/__test__/db/schema.sql