Skip to content

Commit

Permalink
Use inline function in migration:create command instead of script file
Browse files Browse the repository at this point in the history
  • Loading branch information
joonashak committed Jun 25, 2024
1 parent 706f440 commit 9249e00
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions server/create-migration.sh

This file was deleted.

2 changes: 1 addition & 1 deletion server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
"test:e2e": "jest --config ./test/jest-e2e.json",
"typeorm": "npx typeorm-ts-node-commonjs",
"migration:create": "./create-migration.sh",
"migration:create": "create_migration() { npm run typeorm migration:create src/database/migrations/$1 ;}; create_migration",
"migration:run": "npm run typeorm -- migration:run -d src/database/migration-config.ts"
},
"dependencies": {
Expand Down

0 comments on commit 9249e00

Please sign in to comment.