🔥More exclusive content: https://productioncoder.com/you-decide-what-we-build-next
Twitter: https://twitter.com/_jgoebel
Website: https://jangoebel.com
Blog: https://productioncoder.com
Code: https://github.com/productioncoder/typeorm-tutorial
00:00 introduction to TypeORM migrations
00:26 deactivate TypeORM synchronize feature
01:00 generating migrations with the TypeORM CLI
03:41 instructing server to run pending TypeORM migration
04:22 running TypeORM migrations
05:30 smoke test to try out TypeORM entities
09:35 conclusion
In this video we cover how to run TypeORM migrations. We use the CLI to auto-generate our migrations from our TypeORM entities. The ability to generate migrations automatically and to even output clean SQL is one of the biggest strenghts of TypeORM.
All commands that are used to generate the TypeORM migrations can be found in the package.json file as well.