https://github.com/hackmdio/migration-to-0.4.0
the migration tool for HackMD to version 0.4.0
https://github.com/hackmdio/migration-to-0.4.0
Last synced: 10 months ago
JSON representation
the migration tool for HackMD to version 0.4.0
- Host: GitHub
- URL: https://github.com/hackmdio/migration-to-0.4.0
- Owner: hackmdio
- Created: 2016-04-13T17:06:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-20T07:09:54.000Z (over 9 years ago)
- Last Synced: 2025-03-02T16:33:00.908Z (10 months ago)
- Language: JavaScript
- Size: 41 KB
- Stars: 1
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
migration-to-0.4.0
===
This is the migration tool for HackMD to upgrade to version 0.4.0.
Because we've dropped MongoDB from version 0.4.0.
Use this tool if you were running a old version HackMD server.
And have some old data need to transfer to new DB schemas.
Get started
---
1. Install node (at least 4.2), and run `npm install`.
2. You need to specify some settings in the file `config.js`.
- **old_db_mongodb**: old MongoDB connection string.
- **old_db_postgresql**: old PostgreSQL connection string.
- **new_db**: new DB connect settings, [see more here](http://sequelize.readthedocs.org/en/latest/api/sequelize/)
3. run the `app.js` as you like (in most case `node app.js` is enough)
4. Wait for migration, will take more time if you have large amount of data.
5. Complete!