diff --git a/INSTALL.md b/INSTALL.md index c327d7f4e1..fe23d91af0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -189,6 +189,21 @@ To check the current status and start migrations if necessary, run: - The environment variables `DATASTORE_DATABASE_*` were renamed to `DATABASE_*`. If custom values were used, this must be reflected in config files. +- 4.1.0 + - PostgreSQL major is updated from 11 to 15. This means postgres will + complain about the data being incompatible + - The recommended way of porting your data is: + 1. Dump the contents of your DB ([Database backup](#database-backup)) + 2. Do the update ([Update to a new version](#update-to-a-new-version)) + - Be sure to do fetch the new binary of the `openslides` tool as described + 3. Restore the dump into the DB, which should now be running on version 15 ([Database backup](#database-backup)) + - If you updated without dumping beforehand and ran into postgres' error log + you can downgrade by using the old `openslides` tool to get PostgreSQL 11 + again and then follow these steps + - More intricate proposals exist for upgrading PostgreSQL (such as + https://github.com/tianon/docker-postgres-upgrade) aiming at providing less + downtime but these are not production ready and should only be pursued if + you know specifically what you are doing. ## SSL encryption diff --git a/dev/docker/docker-compose.dev.yml b/dev/docker/docker-compose.dev.yml index 2652a48328..12e50c0f59 100644 --- a/dev/docker/docker-compose.dev.yml +++ b/dev/docker/docker-compose.dev.yml @@ -32,7 +32,7 @@ services: - 5679:5678 postgres: - image: postgres:11 + image: postgres:15 environment: - POSTGRES_USER=openslides - POSTGRES_PASSWORD=openslides diff --git a/dev/docker/docker-compose.test.yml b/dev/docker/docker-compose.test.yml index 278a8d8f10..dc5d157808 100644 --- a/dev/docker/docker-compose.test.yml +++ b/dev/docker/docker-compose.test.yml @@ -1,7 +1,7 @@ version: "3" services: postgres-test: - image: postgres:11 + image: postgres:15 environment: - POSTGRES_USER=openslides - POSTGRES_PASSWORD=openslides