From 7a371ec7ca1e8cd65956f9724823f8e428e6693c Mon Sep 17 00:00:00 2001 From: Max Wu Date: Thu, 2 Jun 2016 00:13:01 +0800 Subject: [PATCH] Update README.md --- README.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 84f621a..8e92092 100644 --- a/README.md +++ b/README.md @@ -43,6 +43,13 @@ Get started 4. Setup environment variables, which will overwrite the configs 5. Run the server as you like (node, forever, pm2) +DB migration +--- +If you are upgrading HackMD from older version, you might need to do this to apply the DB schema changes. + +1. Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string. +2. Run `node_modules/.bin/sequelize db:migrate`, that's it! + Structure --- ``` @@ -125,11 +132,6 @@ Third-party integration api key settings | imgur | `config.json` | for image upload | | google drive, dropbox | `public/js/common.js` | for export and import | -DB migration ---- -Modify the file named `.sequelizerc`, change the value of the variable `url` with your db connection string. -And run `node_modules/.bin/sequelize db:migrate`, that's it! - Operational Transformation --- From 0.3.2, we start support operational transformation.