drop
, or even alter
, you risk losing your data. Be careful. Never use drop
oralter
with a production dataset. Additionally, on large databases alter
may take a long time to complete at startup. This may cause commands like sails console
to appear to hang."I'm using Mongo DB and Sails framework. The problem over here is, there is data loss (not consistent).. It's dropping the DB - Collection, when I deploy my changes to the server. How to fix this? Migrate is set to 'Alter' as we used to add new fields to the model... What am I doing wrong?