feat: add db:update script to streamline database updates

Introduced a new `db:update` script combining migration generation and execution. Updated `db:generate` and `db:push` commands for consistency with DrizzleKit updates.
This commit is contained in:
Mathis H (Avnyr) 2025-05-15 18:09:49 +02:00
parent d15bf3fe90
commit 76ef9a3380

View File

@ -18,11 +18,12 @@
"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",
"db:generate": "drizzle-kit generate:pg",
"db:generate": "drizzle-kit generate",
"db:migrate": "ts-node src/database/migrations/migrate.ts",
"db:generate:ts": "ts-node src/database/migrations/generate-migrations.ts",
"db:studio": "drizzle-kit studio",
"db:push": "drizzle-kit push:pg"
"db:push": "drizzle-kit push:pg",
"db:update": "npm run db:generate:ts && npm run db:migrate"
},
"dependencies": {
"@nestjs/common": "^11.0.1",