Add create-migration script

Usage:
npm run create-migration -- my_migration_name_here
cshd
Dragory 2020-08-13 23:55:45 +03:00
parent 77cb19e70c
commit 98532be55a
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "eslint ./src ./db/migrations",
"lint-fix": "eslint --fix ./src ./db/migrations",
"generate-config-jsdoc": "node src/data/generateCfgJsdoc.js"
"generate-config-jsdoc": "node src/data/generateCfgJsdoc.js",
"create-migration": "knex migrate:make"
},
"repository": {
"type": "git",