Add production mode for migration operations (#910)

Would be better to add `--env production` flag to all migration operations
This commit is contained in:
Ziyaddin Sadigov 2018-11-17 00:06:40 +04:00 committed by chad d
parent 460412d90f
commit 489c8ecac6
1 changed files with 3 additions and 1 deletions

View File

@ -475,7 +475,7 @@ See: [Delete](http://knexjs.org/#Builder-del)
### Setting up ### Setting up
#### Creates knexfile.js #### Create knexfile.js
``` ```
./node_modules/.bin/knex init ./node_modules/.bin/knex init
@ -485,6 +485,7 @@ See: [Delete](http://knexjs.org/#Builder-del)
``` ```
knex migrate:make migration_name knex migrate:make migration_name
knex migrate:make migration_name --env production
``` ```
#### Run migrations #### Run migrations
@ -498,6 +499,7 @@ knex migrate:latest --env production
``` ```
knex migrate:rollback knex migrate:rollback
knex migrate:rollback --env production
``` ```
See: [Migrations](http://knexjs.org/#Migrations) See: [Migrations](http://knexjs.org/#Migrations)