groupchat/server/migrations/008_nostr.sql
Jason Tudisco cd8ef7dbf6 fix: split SQLite migration 008 into ALTER TABLE + CREATE UNIQUE INDEX
SQLite does not support ADD COLUMN with inline UNIQUE constraint.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 18:53:25 -06:00

3 lines
129 B
SQL

ALTER TABLE users ADD COLUMN nostr_pubkey TEXT;
CREATE UNIQUE INDEX IF NOT EXISTS idx_users_nostr_pubkey ON users(nostr_pubkey);