.. | ||
content | ||
html2text | ||
tables | ||
__init__.py | ||
.DS_Store | ||
bson2json.py | ||
extract.py | ||
README.md | ||
utils.py |
discours-migration
First, put the data
into this folder.
Install
pipenv install -r requirements.txt
Using
Put the unpacked mongodump to the data
folder and operate with
pipenv shell && python
- get old data jsons
import bson2json
bson2json.json_tables() # creates all the needed data json from bson mongodump
- migrate users
pipenv install
pipenv run python migrate.py users
Note: this will create db entries and it is not tolerant to existed unique email.
- then topics and shouts
pipenv run python migrate.py topics
pipenv run python migrate.py shouts
Now you got the *.dict.json files which contain all the data with old and new(!) ids.