Add npm script to run migrations manually

cshd
Dragory 2020-08-18 22:43:26 +03:00
parent fdabf65882
commit c467c7d0f6
No known key found for this signature in database
GPG Key ID: 5F387BA66DF8AAC1
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@
"lint-fix": "eslint --fix ./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",
"generate-plugin-api-docs": "jsdoc2md -t docs/plugin-api-template.hbs src/pluginApi.js > docs/plugin-api.md", "generate-plugin-api-docs": "jsdoc2md -t docs/plugin-api-template.hbs src/pluginApi.js > docs/plugin-api.md",
"create-migration": "knex migrate:make" "create-migration": "knex migrate:make",
"run-migrations": "knex migrate:latest"
}, },
"repository": { "repository": {
"type": "git", "type": "git",