|
|
|
|
|
by diverightin63
3920 days ago
|
|
So, one thing holding me back from using MongoDB (and thus Meteor) is a lack of understanding how schema can be managed. Say in MongoDB you are storing documents in a collection such as { property: "" }, and decide you want to change that to { property2: "" }. Does that mean you have to script a change to every document to convert these objects? |
|
`Collection.rename('property', 'property2')`
my syntax may be slightly off since i mostly use mongo thru a ruby orm but the basic idea is the same.
we handle these things by having a tasks we run each deployment (named after the deployment version) with the necessary db changes.