Node/TypeORM: Difference between revisions
< Node
Jump to navigation
Jump to search
(Created page with "<source lang="bash"> npm install typeorm --save # make ormconfig.json npx typeorm init </source>") |
No edit summary |
||
| Line 3: | Line 3: | ||
# make ormconfig.json | # make ormconfig.json | ||
npx typeorm init | npx typeorm init | ||
./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:generate -n AddCityColumnToCompany | |||
Image for post | |||
</source> | </source> | ||
* https://medium.com/better-programming/typeorm-migrations-explained-fdb4f27cb1b3 | |||
Latest revision as of 10:11, 12 August 2020
npm install typeorm --save
# make ormconfig.json
npx typeorm init
./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:generate -n AddCityColumnToCompany
Image for post