mirror of
https://gitlab.com/wgp/dougal/software.git
synced 2025-12-06 11:17:08 +00:00
When the database is recreated, the sequences used in the events_timed and events_seq tables will be at their initial values, which will almost certainly conflict with existing data when it is imported via COPY. With this commit, we set the current value for those sequences to something usable. Fixes #33.
Database configuration
Database template (database-template.sql)
Used on installation to create the Dougal database.
Created with:
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 during project creation to add and populate a new schema.
Created with:
SCHEMA_NAME=survey_X EPSG_CODE=XXXXX $DOUGAL_ROOT/sbin/dump_schema.sh