0f6ddd5709
pymongo has removed the ensure_index since 4.0.0. So we need to update ensure_index to create_index Fix the error that couldn't create subscription sucessfully. Change-Id: Ic27e6e885ec5a575ebc168d91eee761177013b9d
12 lines
488 B
YAML
12 lines
488 B
YAML
---
|
|
upgrade:
|
|
- |
|
|
Upgrade one of storage drivers, mongo driver with new version of pymongo.
|
|
Pymongo has been updated to 4.0.0, there are some changes which are not
|
|
supported in new version:
|
|
1. Collection.count and Cursor.count is removed.
|
|
2. Collection.ensure_index is removed.
|
|
3. Collection.__bool__ raises NotImplementedError.
|
|
4. Should use Binary.from_uuid to handle the UUID object.
|
|
Those changes need to upgrade the mongo driver's code to work well.
|