This is the migration tool for HackMD to upgrade to version 0.5.0.
Use this tool if you were running a old version HackMD server.
We'll uncompress note and revision data which were compressed by LZString.
- Stop your server.
- Backup your DB.
- Install node (at least 4.2), and run
npm install
. - Change the db configs in
config.json
, see more here. - Run the
app.js
as you need (in most casenode app.js
is enough), remember to keep the logs. - Wait for migration, will take more time if you have large amount of data. (if migration on Revisions table is slow, it might lacking of primary key on field
id
) - Complete!