Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: update posgres to 16 #1547

Merged
merged 1 commit into from
Nov 14, 2024
Merged

build: update posgres to 16 #1547

merged 1 commit into from
Nov 14, 2024

Conversation

paulschreiber
Copy link
Member

@paulschreiber paulschreiber commented Nov 11, 2024

Description

To upgrade your local development environment
With Postgres 14: ensure your backend Docker container is running (make run).
Back up your database:

CONTAINER_ID=`docker ps | grep postgis | cut -c 1-12`
docker exec -it  ${CONTAINER_ID} pg_dumpall -U postgres > terraso.sql

Delete the data directory:

docker compose -f docker-compose.dev.yml down
docker volume rm backend_postgresql_data

With Postgres 16: ensure your backend Docker container is running (make run).
Restore the data:

CONTAINER_ID=`docker ps | grep postgis | cut -c 1-12`
cat terraso.sql| docker exec -i ${CONTAINER_ID} psql -U postgres

Copy link
Contributor

@knipec knipec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatted with Paul, the context here is that Render made postgres 16 available so we're updating it. I tested this locally with the branch and the steps in the description and it looks good. FYI @shrouxm and @tm-ruxandra you'll want to run the steps once this gets merged

@paulschreiber paulschreiber merged commit fe73599 into main Nov 14, 2024
12 checks passed
@paulschreiber paulschreiber deleted the fix/postgres branch November 14, 2024 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants