I searched for “migrations” in the forums and in the docs, but I didn’t find any references there to database migrations. I see that there are a few of packages for migrations in Atmosphere.
Are migrations really necessary in Mongo? I am new to non-relational databases, but it seems as though you just sort of change the schema on the fly as needed. I haven’t read about many people using migrations (in the whole entire 3 weeks I’ve been developing with Meteor, that is). It is nice to have your database schema in source control, but Mongo doesn’t have the rigid, hard to change schema structure that traditional relational databases use.
I’ve also heard the term “Oplog” thrown around a bit. I guess it’s a port-manteau of “operation log” and that it’s a Mongo component. I googled it, but didn’t really get the documentation right away. I mean, how does it fit into Meteor? The Oplog docs say it is more than a log of database transactions. Does it serve the purpose migrations serve?
The oplog is a Mongo-Specific log which logs all the database transactions and is used for replica sets (so that they know which data is changed). Meteor uses the oplog to “see” in real time which data has changed so that the UI can update accordingly.
I think the presentation has very good points for the requirements of database migration tool.
However the package is deprecated, is there an alternative for current version of meteor 1.4?
I want to run the migrations independently from meteor inside a CLI, that is my main requirement.
Here are other requirements for a good migration tool, mentioned in the video: