Browse Source
- Add naddr_unique constraint and event_naddr index to schema.go - Add buildNaddr() helper to compute pubkey:kind:dtag coordinate - Store naddr on Event nodes for kinds 30000-39999, NULL for others - Add v5 migration to populate naddr for existing addressable events Implements: https://git.nostrdev.com/mleku/next.orly.dev/issues/27 Files modified: - pkg/neo4j/schema.go: Added naddr constraint/index and DROP statements - pkg/neo4j/save-event.go: Added buildNaddr() and naddr in Event CREATE - pkg/neo4j/migrations.go: Added v5 migration migrateAddNaddr() - pkg/version/version: Bumped to v0.58.0 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>main v0.58.0
4 changed files with 143 additions and 3 deletions
Loading…
Reference in new issue