Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

refactor(storage): update collection schemas for v2

Steven Enamakel020a29a5b7cd
diff --git a/crates/openhuman-core/src/threads/store/storage_schema.rs b/crates/openhuman-core/src/threads/store/storage_schema.rs
index fe21fc67fe..a42757a908 100644
--- a/crates/openhuman-core/src/threads/store/storage_schema.rs
+++ b/crates/openhuman-core/src/threads/store/storage_schema.rs
@@ -30,18 +30,21 @@ const SCHEMA: u32 = 2;
pub fn storage_schema() -> Schema {
Schema::new(owner("threads"))
.collection_with(SCHEMA, spec(), ScopeClass::Tenant)
+ // These collections are new in owner schema v2, so each collection
+ // starts at its own version 1; owner versioning does not imply that
+ // a new collection has a v1→v2 migration step.
.collection_with(
- SCHEMA,
+ 1,
CollectionSpec::new(CHANNEL_MESSAGES),
ScopeClass::Tenant,
)
.collection_with(
- SCHEMA,
+ 1,
CollectionSpec::new(STAGED_ATTACHMENTS),
ScopeClass::Agent,
)
.collection_with(
- SCHEMA,
+ 1,
CollectionSpec::new(REPLY_VISEME_TIMELINES),
ScopeClass::Agent,
)