mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 09:47:08 +00:00
Add info on etc/db files
This commit is contained in:
21
etc/db/README.md
Normal file
21
etc/db/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
# Database configuration
|
||||
|
||||
## Database template (`database-template.sql`)
|
||||
|
||||
Used on installation to create the Dougal database.
|
||||
|
||||
Created with:
|
||||
|
||||
```bash
|
||||
pg_dump -U postgres --create --schema-only --exclude-schema='survey_*' dougal >database-template.sql
|
||||
```
|
||||
|
||||
## Schema template (`schema-template.sql`)
|
||||
|
||||
Used by [`bin/create-survey.sh`](../../bin/create-survey.sh) during project creation to add and populate a new schema.
|
||||
|
||||
Created with:
|
||||
|
||||
```bash
|
||||
SCHEMA_NAME=survey_X EPSG_CODE=XXXXX $DOUGAL_ROOT/sbin/dump_schema.sh
|
||||
```
|
||||
Reference in New Issue
Block a user