cbesangeeth / nodejs-boilerplate

nodejs-boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NodeJs boilerplate Service

Migrations

We can use yarn or npm to run migrations scripts

Create Migrations

All the migrations are stored under /migrations folder. To make a migration run ,

yarn migrate:create <fileName>

Eg : yarn migrate:create create-user-table

For Windows users use below command:

node ./node_modules/db-migrate/bin/db-migrate create <fileName> --config config/index.js -e db --sql-file

Run Migrations

All the Migrations are stored under /migrations folder. To run all the migrations run,

yarn run migrate:up

Undo Migrations

All the Migrations are stored under /migrations folder. To rollback a particular migration run,

yarn run migrate:down

About

nodejs-boilerplate


Languages

Language:JavaScript 99.1%Language:HTML 0.9%