R
R
RxApi
Search…
Migrations and cli

Knex migrations in "./migrations" folder.

Install knex console "cli":

sudo npm i knex -g

Create a empty knexfile.js

knex init

Run the last migration

knex migrate:latest

Create a new migration

knex migrate:make users

Remove changes

knex migrate:rollback