Updating your database
If you find that your local Postgres version has become out of sync with a recent upgrade then you will have to follow these steps.
Build new images and volumes
- In a terminal Run
docker compose down - Delete dataworkspace FE volumes - Note: this WILL DELETE your entire local db
- Run
docker compose up —build -d
Import test data
- Shell into the admin container. For example:
docker exec -it data-workspace-frontend-data-workspace-1 bin/bash - Flush the db by running
django-admin flush --noinput - Import test data by running
django-admin loaddata --ignorenonexistent --verbosity=3 dataworkspace/e2e_fixtures.json - Refresh your browser and you should now see the test datasets