Skip to main content

max / goingson

656 B · 12 lines History Blame Raw
1 -- App settings as key/value rows, moved off the frontend's localStorage onto the
2 -- shared config store (step 6 of the portable-config migration). Which keys sync
3 -- is governed by posture: the SyncStore engine generates this table's triggers
4 -- from the config manifest (config_sync_table in syncstore/manifest.rs), and they
5 -- enqueue a changelog row only for keys the config_key_policy allowlist marks
6 -- replicated. The policy is seeded from the ConfigSpec at every launch
7 -- (syncstore::seed_config_policy); an undeclared key has no row and never syncs.
8 CREATE TABLE IF NOT EXISTS user_config (
9 key TEXT PRIMARY KEY,
10 value TEXT NOT NULL
11 );
12