R
R
RxApi
Search…
Migrations and cli

Knex migrations in "./migrations" folder.

Install knex console "cli":

1
sudo npm i knex -g
Copied!

Create a empty knexfile.js

1
knex init
Copied!

Run the last migration

1
knex migrate:latest
Copied!

Create a new migration

1
knex migrate:make users
Copied!

Remove changes

1
knex migrate:rollback
Copied!