Created
April 4, 2025 01:59
-
-
Save rodrigobertin/10edb2d28af79ec0e0870d089f67e2cb to your computer and use it in GitHub Desktop.
Type orm commands nestjs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"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