Developer Guides
Database
Schema and local database management
The development environment uses a Postgres database. This section describes the database schema and how you can manipulate your local database for testing purposes.
Schema
Backup Database
In development, use the pg_dump
utility to dump a copy of your database:
If you are running with the included Docker configurations, then get a shell in your postgres_container
, create the backup file,
and copy it using docker cp
.
Restore from backup
Load data from SJAA DB
To load data from the Google Sheet formatted SJAA DB of yore, save the Google Sheet as a CSV, and then use the patch
rake command: