|
|
@@ -207,6 +207,8 @@ bool MigrationRunner::applyOperation(const nlohmann::json& operation) {
|
|
|
}
|
|
|
options.defaultTtlSeconds = opts.value("default_ttl_seconds", 0U);
|
|
|
options.maxVersions = opts.value("max_versions", 0U);
|
|
|
+ if (opts.contains("vector_dimension") && opts["vector_dimension"].is_number())
|
|
|
+ options.vectorDimension = opts["vector_dimension"].get<uint32_t>();
|
|
|
}
|
|
|
|
|
|
bool created = store_.createCollection(collection, options);
|
|
|
@@ -372,6 +374,9 @@ bool MigrationRunner::applyOperation(const nlohmann::json& operation) {
|
|
|
if (opts.contains("max_versions")) {
|
|
|
options.maxVersions = opts["max_versions"].get<uint32_t>();
|
|
|
}
|
|
|
+ if (opts.contains("vector_dimension") && opts["vector_dimension"].is_number()) {
|
|
|
+ options.vectorDimension = opts["vector_dimension"].get<uint32_t>();
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
bool altered = store_.alterCollection(collection, options);
|