Files
git.stella-ops.org/devops/compose/postgres-init/14-platform-environment-settings.sql
2026-04-14 21:44:35 +03:00

14 lines
578 B
SQL

-- Platform environment_settings table for installation-scoped runtime config overrides.
-- Fresh compose databases should start without a SetupComplete marker so the
-- truthful bootstrap wizard can own first-run convergence.
-- This is idempotent and safe to run on new compose databases.
CREATE SCHEMA IF NOT EXISTS platform;
CREATE TABLE IF NOT EXISTS platform.environment_settings (
key TEXT PRIMARY KEY,
value TEXT NOT NULL,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
updated_by TEXT NOT NULL DEFAULT 'system'
);