Skip to content
Emmanuel Robert Ssebaggala edited this page Aug 23, 2019 · 2 revisions

Welcome to the bts-ce-lite wiki!

Running migrations with node-pg-migrate

# Upgrade
 DATABASE_URL=postgres://bodastage:password@localhost:5432/boda yarn run migrate up -m db/migrations

# Downgrade. N is the number of steps down from HEAD
 DATABASE_URL=postgres://bodastage:password@localhost:5432/boda yarn run migrate down -m db/migrations N

# Create migrations 
DATABASE_URL=postgres://bodastage:password@localhost:5432/boda yarn run migrate create -m db/migrations/ some migration
Clone this wiki locally