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>
This commit is contained in:
Jason Tudisco 2026-03-16 18:53:25 -06:00
parent 1a2f0e7951
commit cd8ef7dbf6

View File

@ -1 +1,2 @@
ALTER TABLE users ADD COLUMN nostr_pubkey TEXT UNIQUE;
ALTER TABLE users ADD COLUMN nostr_pubkey TEXT;
CREATE UNIQUE INDEX IF NOT EXISTS idx_users_nostr_pubkey ON users(nostr_pubkey);