feat: add initial migrations

This commit is contained in:
2026-07-08 09:14:10 +03:30
parent b4570f6df9
commit 146e598bf0
7 changed files with 100 additions and 7 deletions
+10 -2
View File
@@ -1,5 +1,5 @@
{
"name": "borna-backend",
"name": "heala-backend",
"version": "0.0.1",
"description": "",
"author": "",
@@ -17,7 +17,15 @@
"test:watch": "jest --watch",
"test:cov": "jest --coverage",
"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"
"test:e2e": "jest --config ./test/jest-e2e.json",
"typeorm:dev": "cross-env NODE_ENV=development typeorm-ts-node-commonjs -d src/database/data-source.ts",
"typeorm:prod": "cross-env NODE_ENV=production typeorm -d dist/database/data-source.js",
"migration:generate": "npm run typeorm:dev -- migration:generate",
"migration:create": "npm run typeorm:dev -- migration:create",
"migration:run:dev": "npm run typeorm:dev -- migration:run",
"migration:run:prod": "npm run typeorm:prod -- migration:run",
"migration:revert:dev": "npm run typeorm:dev -- migration:revert",
"migration:revert:prod": "npm run typeorm:prod -- migration:revert"
},
"dependencies": {
"@nestjs/common": "^11.0.1",