R
R
RxApi
Search…
R
R
RxApi
Introduction
Basic configuration
HTTP
Router
Routes/Controller
WEBSOCKETS
Events
DATABASE/ORM (KNEX)
Basic configuration
Migrations and cli
Powered By
GitBook
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!
DATABASE/ORM (KNEX) - Previous
Basic configuration
Last modified
1yr ago
Copy link
Contents
Knex migrations in "./migrations" folder.
Install knex console "cli":
Create a empty knexfile.js
Run the last migration
Create a new migration
Remove changes