From 98532be55a7bab460992fe781d93f88e8faf393f Mon Sep 17 00:00:00 2001 From: Dragory <2606411+Dragory@users.noreply.github.com> Date: Thu, 13 Aug 2020 23:55:45 +0300 Subject: [PATCH] Add create-migration script Usage: npm run create-migration -- my_migration_name_here --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 3d716da..88d33ae 100644 --- a/package.json +++ b/package.json @@ -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",