mirror of
https://github.com/clearml/clearml-server
synced 2025-02-15 01:02:26 +00:00
13 lines
314 B
Python
13 lines
314 B
Python
![]() |
from collections import Collection
|
||
|
|
||
|
from pymongo.database import Database, Collection
|
||
|
|
||
|
|
||
|
def migrate_auth(db: Database):
|
||
|
"""
|
||
|
Remove the old indices from the user collections
|
||
|
to enable building of the updated user email index
|
||
|
"""
|
||
|
collection: Collection = db["user"]
|
||
|
collection.drop_indexes()
|