Got a nest.js/typeorm/postgres application that I have been developing for the last year. Been creating/adding/removing tables/columns but never used migrations.
Now comes time to deploy and whenever I run typeorm migration:generate, a migration file is created for the last colums that I added/removed from only 1 or 2 tables.
Is it possible to generate a migration for all existing entities that are already part of my db schema?
Basically, the up would create each table with FKs, indexes, constraints, etc and the down would drop all of that.
Note: I noticed this post. Is this the correct approach for my issue?