MongoDB migrations - Gapminder/dollar-street-framework GitHub Wiki

All migrations placed in the migrations folder.

All migrations which were applied, placed in the "applied" folder and they don't run.

Before start migrations, create DB dump.

Run npm run build:server in a command line.

Run NODE_ENV=[your node_env] MODE_ENV=[your mode_env] migrate up for start migration