core/migration
2021-10-08 12:58:19 +03:00
..
content migration api upgraded 2021-10-04 20:06:05 +03:00
tables upgrade 2021-10-08 12:58:19 +03:00
__init__.py role_id and topic relations fixes 2021-08-20 12:27:19 +03:00
.DS_Store migration api upgraded 2021-10-04 20:06:05 +03:00
bson2json.py upgrade 2021-10-08 12:58:19 +03:00
html2md.py migration wip, minor fixes scheme 2021-08-23 11:44:46 +03:00
html2text.py aftermerge, migration fixed 2021-08-26 00:20:53 +03:00
README.md migration wip, minor fixes scheme 2021-08-23 11:44:46 +03:00
utils.py role_id and topic relations fixes 2021-08-20 12:27:19 +03:00

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

  1. get old data jsons
import bson2json

bson2json.json_tables() # creates all the needed data json from bson mongodump
  1. 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.

  1. 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.