Reputation: 690
At the moment I'm not a guru on TypeORM and have made a few mistakes with my migrations - with our non-production database now in a state where I'd like it, is it possible to consolidate the TypeORM migrations into a single file of "create table 1 ... (n)" and remove all the other migrations?
All documents I find tell me "how" to migrate, but I haven't seen anything on a "reset and make this the default"
Thanks
Upvotes: 6
Views: 2050
Reputation: 151
well basically what you want to do is following:
we have done it in various startups in the past and you should not have any problems as far as you didn`t do any incompatible manual changes to your database schemas
do I need to add to backup everything before and after? :)
Upvotes: 9