export const versionCheck = async (db: DbConnection) => {
if (isPostgres(db)) {
// We only support Postgres v12+
// https://github.com/laurent22/joplin/issues/9695
// https://www.postgresql.org/docs/current/rules-materializedviews.html
const minPostgresVersion = '12.0';
In case you are not aware, if you do decide to try changing database versions it can require more than just updating your docker-compose file. This post helped me to migrate from Postgres v15 to v16: