Problem
PR #3167 introduced Oban into Logflare (merged on 2026-03-02), and currently Oban creates its tables in the public database schema by default. This causes unnecessary schema pollution of the public namespace, which is undesirable for database organization and isolation of Logflare's analytics-related tables.
Expected Solution
Allow configuring the database schema for Oban tables via environment variables and/or direct config, with the intended target schema being _analytics for Logflare's analytics workloads.
- Set the Oban prefix to
_analytics by default for Logflare: config :logflare, Oban, prefix: "_analytics"
- Add environment variable support for flexible schema control:
- Primary:
LOGFLARE_OBAN_SCHEMA (takes precedence if set)
- Fallback: Reuse existing
DB_SCHEMA if LOGFLARE_OBAN_SCHEMA is not provided
Thank you for considering this configuration improvement!
Problem
PR #3167 introduced Oban into Logflare (merged on 2026-03-02), and currently Oban creates its tables in the public database schema by default. This causes unnecessary schema pollution of the public namespace, which is undesirable for database organization and isolation of Logflare's analytics-related tables.
Expected Solution
Allow configuring the database schema for Oban tables via environment variables and/or direct config, with the intended target schema being
_analyticsfor Logflare's analytics workloads._analyticsby default for Logflare:config :logflare, Oban, prefix: "_analytics"LOGFLARE_OBAN_SCHEMA(takes precedence if set)DB_SCHEMAifLOGFLARE_OBAN_SCHEMAis not providedThank you for considering this configuration improvement!