backend/data/how_to_do_migration.md

5 lines
202 B
Markdown
Raw Normal View History

2020-05-01 09:54:28 +00:00
## How to do a migration
- Create `.env` to the root folder
- Add the database url to the `.env` file:
2020-05-01 15:32:46 +00:00
`DATABASE_URL=postgres://username:password@host:port/database`
2020-05-02 19:06:34 +00:00
- Run `npx knex migrate:latest`