discourse/migrations/config
Jarek Radosz 0092d481f3
DEV: Handle running TemporaryDb as root (#38988)
PostgreSQL refuses to run initdb/pg_ctl as root. When TemporaryDb
detects it is running as root, it now delegates all PG commands to
the postgres system user via sudo. This fixes the migration-tests
CI workflow where the schema validation step runs as root.

Also adds a PATH-based fallback for pg_bin_path discovery to support
distributions that install PG binaries outside the hardcoded paths
(e.g. Fedora system packages in /usr/bin).

---------

Co-authored-by: Gerhard Schlager <gerhard.schlager@discourse.org>
2026-03-31 20:17:50 +02:00
..
locales MT: Refactor schema configuration from YAML to Ruby DSL 2026-03-19 18:10:26 +01:00
schema DEV: Handle running TemporaryDb as root (#38988) 2026-03-31 20:17:50 +02:00
importer.yml DEV: Add support for converting and importing site settings 2025-10-31 11:21:40 +01:00
intermediate_db.yml DEV: Update excluded tables in migrations (#38723) 2026-03-19 15:35:18 +01:00
upload.yml.sample DEV: Refactor uploads_importer script (#29292) 2024-10-31 13:31:12 +00:00