Skip to content

Commit 7a371ec

Browse files
committed
Update README.md
1 parent 03bdee2 commit 7a371ec

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ Get started
4343
4. Setup environment variables, which will overwrite the configs
4444
5. Run the server as you like (node, forever, pm2)
4545

46+
DB migration
47+
---
48+
If you are upgrading HackMD from older version, you might need to do this to apply the DB schema changes.
49+
50+
1. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string.
51+
2. Run `node_modules/.bin/sequelize db:migrate`, that's it!
52+
4653
Structure
4754
---
4855
```
@@ -125,11 +132,6 @@ Third-party integration api key settings
125132
| imgur | `config.json` | for image upload |
126133
| google drive, dropbox | `public/js/common.js` | for export and import |
127134

128-
DB migration
129-
---
130-
Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string.
131-
And run `node_modules/.bin/sequelize db:migrate`, that's it!
132-
133135
Operational Transformation
134136
---
135137
From 0.3.2, we start support operational transformation.

0 commit comments

Comments
 (0)