Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Follow these steps in order to migrate from PostgreSQL 16 to 17 : - Make a SQL backup - Install PostgreSQL 17 - Drop the database created by FitTrackee - Restore the backup docker exec -i fittrackee-db pg_dumpall \ -U fittrackee > postgres-backupv16.sql docker stop fittrackee-db fittrackee mv fittrackee-db fittrackee-db.16 docker compose pull && docker compose up -d docker cp postgres-backupv16.sql fittrackee-db:/tmp docker stop fittrackee docker exec -it fittrackee-db bash su - postgres psql -U fittrackee -c 'DROP DATABASE fittrackee WITH (FORCE);' psql -U fittraclee -c 'CREATE DATABASE fittrackee;' psql -U fittrackee < postgres-backupv16.sql psql -U fittrackee -c 'ALTER USER fittrackee WITH PASSWORD \'fittrackee\';' docker restart fittrackee-db fittrackee Test the FitTrackee with PostgreSQL see equipments. If you're sure all is working as expected you can remove old PostgreSQL data directory : rm -rf fittrackee-db.16
- Loading branch information