You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
345 B
SQL

CREATE TABLE IF NOT EXISTS runtime_config (
id BOOLEAN PRIMARY KEY DEFAULT TRUE,
payload JSONB NOT NULL DEFAULT '{}'::jsonb,
updated_at TIMESTAMPTZ NOT NULL DEFAULT now(),
CONSTRAINT runtime_config_single_row CHECK (id = TRUE)
);
INSERT INTO runtime_config (id, payload)
VALUES (TRUE, '{}'::jsonb)
ON CONFLICT (id) DO NOTHING;