discourse/migrations/lib/database/intermediate_db/enums
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
..
log_entry_type.rb MT: Switch to nested module style across migrations/ (#38564) 2026-03-19 18:15:19 +01:00
site_setting_datatype.rb DEV: Handle running TemporaryDb as root (#38988) 2026-03-31 20:17:50 +02:00
site_setting_import_mode.rb MT: Switch to nested module style across migrations/ (#38564) 2026-03-19 18:15:19 +01:00
upload_type.rb MT: Switch to nested module style across migrations/ (#38564) 2026-03-19 18:15:19 +01:00