Add setup-fresh-db script to reset dev database and run migrations.
This commit is contained in:
@@ -13,6 +13,8 @@
|
||||
"typeorm:generate-migration": "npm run typeorm -- -d ./src/database/DataSource.ts migration:generate ./src/database/migrations/$npm_config_name",
|
||||
"typeorm:revert-migration": "npm run typeorm -- -d ./src/database/DataSource.ts migration:revert",
|
||||
"typeorm:create-migration": "npm run typeorm -- migration:create ./src/database/migrations/$npm_config_name",
|
||||
"truncate-db": "ts-node -r tsconfig-paths/register ./src/database/utils/drop",
|
||||
"setup-fresh-db": "npm run truncate-db && npm run typeorm:run-migrations",
|
||||
"test": "jest"
|
||||
},
|
||||
"jest": {
|
||||
|
||||
Reference in New Issue
Block a user