internal async ValueTask MigrateAsync(CancellationToken cancellationToken = default) { lock (_lockObject) { if (_database.GetDocumentVersion(CollectionName) <= 0) { var col = this.GetCollection(); col.EnsureIndex(x => x.FilePath, true); } _database.SetDocumentVersion(CollectionName, 1); } }