mirror of
https://gitea.ingwaz.work/Ingwaz/openbrain-mcp.git
synced 2026-03-31 14:49:06 +00:00
Add TTL expiry for transient facts
This commit is contained in:
6
migrations/V3__transient_fact_ttl.sql
Normal file
6
migrations/V3__transient_fact_ttl.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
ALTER TABLE memories
|
||||
ADD COLUMN IF NOT EXISTS expires_at TIMESTAMPTZ;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_memories_expires_at
|
||||
ON memories (expires_at)
|
||||
WHERE expires_at IS NOT NULL;
|
||||
Reference in New Issue
Block a user