Files
member-console/internal/integration/queries/config_overrides.sql
T
cgalo5758 296236a721 Add operator-managed integration settings
Persist non-secret ConfigSpec overrides in core and apply them at boot
ahead of environment values and defaults. Validate typed and enum
values,
show pending restart state, and remove Stripe's unused provider config
table.
2026-07-22 22:17:58 -05:00

15 lines
471 B
SQL

-- name: ListConfigOverrides :many
SELECT key, value, updated_by, updated_at
FROM core.integration_config_overrides
ORDER BY key;
-- name: UpsertConfigOverride :exec
INSERT INTO core.integration_config_overrides (key, value, updated_by)
VALUES ($1, $2, $3)
ON CONFLICT (key) DO UPDATE
SET value = EXCLUDED.value, updated_by = EXCLUDED.updated_by, updated_at = NOW();
-- name: DeleteConfigOverride :execrows
DELETE FROM core.integration_config_overrides
WHERE key = $1;