Skip to content

Commit a6b4862

Browse files
laanwjscsibug
authored andcommitted
fix: sqlite schema comment
`event_hash` is the raw SHA256 hash of the event, not 4-byte hash.
1 parent d71f5cb commit a6b4862

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/repo/sqlite_migration.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ PRAGMA user_version = {};
4040
-- Event Table
4141
CREATE TABLE IF NOT EXISTS event (
4242
id INTEGER PRIMARY KEY,
43-
event_hash BLOB NOT NULL, -- 4-byte hash
43+
event_hash BLOB NOT NULL, -- 32-byte SHA256 hash
4444
first_seen INTEGER NOT NULL, -- when the event was first seen (not authored!) (seconds since 1970)
4545
created_at INTEGER NOT NULL, -- when the event was authored
4646
expires_at INTEGER, -- when the event expires and may be deleted

0 commit comments

Comments
 (0)