Files
discourse/abra.sh
T
notplants af76d06c2d feat(db): use pgautoupgrade image instead of pgvector + bespoke pg_upgrade
discourse core does not use the vector extension, so the pgvector image is
unnecessary. Switch db to pgautoupgrade/pgautoupgrade:17-trixie, which handles
major-version upgrades (old binaries, initdb, pg_upgrade) itself.

pgautoupgrade assumes the old cluster's install user (oid 10) equals
POSTGRES_USER and fails pg_upgrade otherwise (issue #115). A thin wrapper
entrypoint detects the old install user when an upgrade is pending and exports
POSTGRES_USER so pgautoupgrade matches it. Replaces the 64-line hand-rolled
pg_upgrade entrypoint.
2026-06-18 22:12:57 +00:00

6 lines
165 B
Bash

export DB_ENTRYPOINT_VERSION=v4
export PG_BACKUP_VERSION=v2
export APP_ENTRYPOINT_VERSION=v2
export APP_INSTALL_SSL_VERSION=v1
export APP_MIGRATE_UPLOADS_VERSION=v1