Update log schema: add thread_hash, message_refs table

This commit is contained in:
ARCHITECT
2026-01-01 12:04:54 +00:00
parent 9816ff1b04
commit 8229446129
2 changed files with 53 additions and 25 deletions

View File

@@ -52,7 +52,7 @@ CREATE TABLE log.message_refs (
message_hash CHAR(64) NOT NULL,
ref_hash CHAR(64) NOT NULL,
ref_type log.ref_type NOT NULL,
position INT,
position INT NOT NULL,
thread_hash CHAR(64),
UNIQUE(message_hash, ref_hash)
);