Upgrading Postgresql from v11.7 to v14.8 Locally - department-of-veterans-affairs/caseflow GitHub Wiki
Caseflow Edition
eFolder Express Edition
Remove the Existing Postgres Volume
- First, stop all active Caseflow containers
make down
or make down-m1
depending on your system
- Optional: Remove the
appeals-db
container if it's still showing as active
docker rm appeals-db
- Remove the volume used to house Caseflow's Postgresql data files
docker-compose down --volumes
- Optional: Explicitly remove the volume if it still persists
docker volume rm caseflow_postgresdata
Recreating the Postgres Database
- Ensure you're checked out to a branch with the Postgres image set to v14 in your docker-compose files (ex: postgres-14-demo-test)
- Restart your containers
make up
or make up-m1
- Reinitialize your database schema:
bundle exec rake db:create db:schema:load
- Reseed your database
make reset