Files
dougal-software/etc/db
D. Berge f314536daf Change planned_lines trigger from statement to row.
Because a) it tells us what has changed and b) doesn't fire if we
didn't actually change anything.
2021-05-28 20:30:59 +02:00
..
2021-05-25 02:21:11 +02:00
2020-08-12 14:24:10 +02:00

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