Knex
CLI
Convenience Scripts
Update your package.json
:
package.json
Migrations
Naming
Examples:
Sticks to the knex function names createTable
and alterTable
Avoid an "init
" file.
Avoid an "init" file.
For example, do not have a: 20190424135724_init.js
Instead just do: 20190424135724_create_entries.js
This explains what the file does.
Tables should be plural
Fields should be in
camelCase
Follows JavaScript Style Guides for local variables
Exception relational id, for example:
entryID
Also see Engineering Code > Naming
Promises:
20190424104046_createTable_users.js
Last updated
Was this helpful?