- Clone the Borgia-docs repository
- Copy the file
script.py
into theBorgia
folder:cp /borgia/Borgia-docs/migrations/Birse/From 02a84cf to 35f832b/script.py /borgia/borgia/script.py
- Enter the python environment:
source /borgia/borgiaenv/bin/activate
- Dump useful tables with Django :
python3 manage.py dumpdata auth users shops finances.sale finances.saleproduct finances.recharging finances.paymentsolution finances.cheque finances.bankaccount finances.cheque finances.cash finances.lydiafacetoface finances.lydiaonline finances.transfert finances.exceptionnalmovement modules settings_data notifications stocks --indent 4 >> dump_useful.json
- Dump the SharedEvent table with the script:
python3 script.py
- Transfer the dump, for instance with SCP
- Within the Python environment, load useful tables generated by dumpdata.
- Within the Python environment, load SharedEvent tables generated by the script.