Skip to content
Snippets Groups Projects
Commit ca4e38d0 authored by Sebastian Pohl's avatar Sebastian Pohl
Browse files

working on db migration 3

parent 69ef645e
Branches
No related merge requests found
......@@ -28,8 +28,13 @@ def migrate_mongodb():
print("DEBUG:", "local_bind_address", str(server.local_bind_address))
client = pymongo.MongoClient('127.0.0.1', server.local_bind_port) # server.local_bind_port is assigned local port
db = client[MONGO_DB]
pprint.pprint(db.collection_names())
new_db = client[MONGO_DB]
print("New database collection names:", new_db.list_collection_names())
from ..db_operations.db_connector import DBConnector
old_db = DBConnector()
print("Old database collection names:", old_db.list_collection_names())
server.stop()
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment