VNOX-Server/hub/migrations/0009_account_onboarding.sql
loki5512344 c18ccadf99
chore(server): checkpoint deployed services and unfinished forums
User requested a checkpoint and stopped all agents. Deployed artifacts remain the last verified releases; unfinished settings/categories/forums are preserved as WIP. See TODO/roadmap for verification and remaining release/updater work.
2026-11-01 15:31:20 +01:00

8 lines
414 B
SQL

-- Existing accounts have no row and never receive a first-registration prompt.
-- This migration is independent of optional handle/profile completion migrations.
CREATE TABLE account_onboarding (
user_id TEXT PRIMARY KEY REFERENCES accounts(user_id) ON DELETE CASCADE,
decided_at INTEGER,
decision TEXT CHECK (decision IN ('rename', 'later')),
CHECK ((decided_at IS NULL) = (decision IS NULL))
);