From 462108fa71df8af58991e1b9bbbe08596fbff02a Mon Sep 17 00:00:00 2001 From: Benjamin Blanchard Date: Fri, 13 Sep 2024 16:48:24 -0400 Subject: [PATCH] fix migration scripts for the new typeorm --- backend/packages/Upgrade/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/packages/Upgrade/package.json b/backend/packages/Upgrade/package.json index f85f1f6729..cbdff8fb00 100644 --- a/backend/packages/Upgrade/package.json +++ b/backend/packages/Upgrade/package.json @@ -19,8 +19,8 @@ "seed": "npm start db.seed", "drop": "npm start db.drop", "help": "npm start help", - "migration:generate": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./node_modules/.bin/typeorm migration:generate src/database/migrations/$name -d src/loaders/typeormLoader.ts", - "migration:create": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./node_modules/.bin/typeorm migration:create src/database/migrations/$name", + "migration:generate": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./node_modules/.bin/typeorm migration:generate src/database/migrations/$npm_config_name -d src/loaders/typeormLoader.ts", + "migration:create": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./node_modules/.bin/typeorm migration:create src/database/migrations/$npm_config_name", "migration:run": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./node_modules/.bin/typeorm migration:run -d src/loaders/typeormLoader.ts", "migration:revert": "./node_modules/.bin/ts-node -r tsconfig-paths/register ./node_modules/.bin/typeorm migration:revert -d src/loaders/typeormLoader.ts" }, @@ -119,4 +119,4 @@ "typedi": "$typedi", "@types/babel__traverse": "7.0.6" } -} +} \ No newline at end of file