Skip to content

Instantly share code, notes, and snippets.

@rodrigobertin
Created April 4, 2025 01:59
Show Gist options
  • Save rodrigobertin/10edb2d28af79ec0e0870d089f67e2cb to your computer and use it in GitHub Desktop.
Save rodrigobertin/10edb2d28af79ec0e0870d089f67e2cb to your computer and use it in GitHub Desktop.
Type orm commands nestjs
"typeorm:check": "NODE_ENV=development typeorm-ts-node-commonjs migration:show -d src/db/data-source.ts",
"typeorm:generate": "NODE_ENV=development typeorm-ts-node-commonjs migration:generate -d src/db/data-source.ts migrations/migration",
"typeorm:run": "NODE_ENV=development typeorm-ts-node-commonjs migration:run -d src/db/data-source.ts",
"typeorm:revert": "NODE_ENV=development typeorm-ts-node-commonjs migration:revert -d src/db/data-source.ts",
"typeorm:all": "npm run typeorm:generate && npm run typeorm:run"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment