Commit graph

11 commits

Author SHA1 Message Date
None
8eef088950 Add PostgreSQL version check for modular deployments
Implements automatic version validation for external databases in modular mode to ensure compatibility.

Changes:
- Added check_external_postgres_version() in 02-postgres.sh
- Integrated version check in entrypoint.sh after database connection
- Enforces minimum PostgreSQL version matching DispatcharrBase
- Allows newer versions with forward compatibility notice
- Rejects older versions with clear upgrade instructions

The version requirement automatically scales when DispatcharrBase is updated, requiring no manual maintenance. Only applies to modular deployments using external databases; AIO deployments are unaffected.

Tested and verified correct behavior with PostgreSQL v17, v18, and v16
2026-01-31 20:45:39 -06:00
SergeantPanda
8de22fc44d Indent modular if statement for readability. 2026-01-29 10:22:07 -06:00
Matt Grutza
557e192d4c Add UTF8 encoding check for external databases
Extend ensure_utf8_encoding() to support both internal and external PostgreSQL.

- Modular mode: Uses TCP connection with PGPASSWORD authentication
- AIO mode: Uses Unix socket as postgres user
- Explicitly set database owner during recreation (fixes missing --owner flag)
- Conversion logic (dump/drop/recreate/restore) works for both AIO and modular modes
- Skip internal PostgreSQL setup entirely when DISPATCHARR_ENV=modular
2026-01-23 19:15:27 -06:00
SergeantPanda
f9a9d5d336 Convert postgres to UTF8 from ASCII 2025-08-02 19:02:57 -05:00
SergeantPanda
406ac37fb9 Delete temp folder if it exists during upgrade. 2025-07-31 15:01:28 -05:00
SergeantPanda
108a992643 Detect mismatched Postgres version and automatically run pg_upgrade 2025-07-31 14:53:55 -05:00
dekzter
1b75fbc90a postgres dir var, nginx variable replacement, more permission modification 2025-04-02 16:28:58 -04:00
SergeantPanda
eb1c1d4165 Fixes db migration. 2025-03-28 15:17:11 -05:00
dekzter
dbee621d90 moving postgres database 2025-03-27 20:15:09 -04:00
dekzter
59f8ec033c init npm / node on dev environment setup, run npm server (need to make this configurable), more init items for dispatcharr 2025-03-05 08:33:12 -05:00
dekzter
6b0becce62 first attempt to switch to uwsgi 2025-03-04 20:02:40 -05:00