Bind booleans as bool for the postgres dialect in auth and conversations #64

Merged
weichen merged 1 commits from feature/store-pg-bool-dialect into main 2026-10-05 02:53:24 +00:00
1 Commits
Author SHA1 Message Date
weichen 14aa60b698 Bind booleans as bool for the postgres dialect in auth and conversations
ci / vet-and-test (pull_request) Successful in 42s
Why: user create/reset-password and conversation flag updates wrote 1/0
literals and boolInt ints into BOOLEAN columns; SQLite tolerates it,
PostgreSQL rejects with 42804. The 10-04 user create on pg1 failed midway
(empty password_hash, is_admin=f), and password reset, user list (bool
scanned into int) and login (GetUserAuthState scan) were all broken on
the postgres tier.

Evidence: store tests green; against the live pg1 the fixed CLI completes
user reset-password and user list (isAdmin=true, mustChangePassword=true,
hasPassword=true).

Impact: auth/account management and conversation list/flag paths work on
postgres; SQLite unchanged (0/1 converts via driver.Bool). No schema
changes.

Refs: dev-repo PR for gitlink bump (feature/store-pg-bool-dialect)
2026-10-05 02:53:14 +00:00