How migrations work on incremental development?

How manfiest handles cases of required migrations after some iterations of development? E.g. in some of releases I found that I need to remove one of properties and add 2 more as required w/ default values? Is there any autogenerated or manually write option for migrations?
2 Replies
brunobuddy
brunobuddy3mo ago
Hello @Joe Beretta, The database uses synchronization over migrations. It means that when you deploy a new YAML with let's say a new column, it creates it when you restart your app. Removing a column will also delete it (with its content). This approach has some drawbacks vs migrations but it is the simplest by far. This reddit conversation talks about this: https://www.reddit.com/r/typescript/comments/pp86s8/can_some_one_explain_to_me_migration_vs/
Reddit
From the typescript community on Reddit
Explore this post and more from the typescript community
Joe Beretta
Joe BerettaOP3mo ago
Oh I know syncronize mode of typeorm and it’s really unsafe to use in production Luckily I knew this drawback and not fault into that scenario on my own P.s. As an idea of solving it I see the option to generate migration files before deployment or after regeneration of existing scheme

Did you find this page helpful?