GrottoCenter / grottocenter-api

Grottocenter API
https://api.grottocenter.org
GNU Affero General Public License v3.0
15 stars 2 forks source link

chore(docker): use the same postgre version as production #1289

Closed bsoufflet closed 6 months ago

bsoufflet commented 7 months ago

🤔 What

We are using an old version of postgreSQL in production. To make sure our dev is align with this version we should force docker to use the same version. Also fixing the sql file which is using some query which are not compatible with production.

vmarseguerra commented 7 months ago

Thanks. As the final release for Postgresql v12 is expected to be at the end of the year, may be we should upgrade the production database to the lastest version (v16) ?

https://www.postgresql.org/support/versioning/

bsoufflet commented 7 months ago

@vmarseguerra : C'est possible en effet mais cela ne semble pas etre une opération triviale d'après la doc RDS : https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.PostgreSQL.html

vmarseguerra commented 7 months ago

J'ai mis à jour la base de données de prod vers la version 16.1, comme tag pour le docker on peut utiliser postgis/postgis:16-3.4 Il ne devrait plus avoir besoin de modifier le fichier sql/0_triggers.sql le CREATE OR REPLACE étant supporté depuis la version 14