-
Notifications
You must be signed in to change notification settings - Fork 2k
MongoDB Migrations #52
Comments
Hi @naartjie, This is an interesting idea since db migrations is usually a painful task. However I'm also not sure it would be best to include this in the core, so I'll mark it as an enhancement for the moment. We'll share this feature with the community and see what they think. Cheers, |
Hi @naartjie, @amoshaviv, I am just starting my first project with the MEAN stack, and I was thinking about kind of rails migration as well. Though I'm a experienced developer, I am relatively new to Javascript in the backend and the MEAN stack, so I would like to share here my thoughts regarding this topic and collect your feedback. When talking about migrations I was thinking 2 types of migrations: schema migrations and data migrations, and the ability to versioning all of that.
What is your view on that? Cheers, |
Hi @martiserra and welcome to MEAN ;-) You know what, I think you are right, I'm just having a browse through node-migrate, and it looks like not much is required to get it to work with Mongo. I do think this is outside the scope of MEAN, and we should probably roll something independently. Let's keep each other updated if we do start something ;) |
I have added migration support to my projects using the mongodb driver and migrate (javascript w/ callbacks). I don't think adding migrations support is overly opinionated, especially since it can be done in isolation. I would advocate for a javascript solution over rails simply to maintain consistency, but I have heard rails has more advanced migration features. |
The convo from Twitter.
I was thinking of migrations a-la Rails or Fuel PHP.
Could base something on the relatively simple and abstract
migrate
framework. I tried usingmongo-migrate
, as well as a command line tool, but I've had no luck with either.This might be something which is best left as un-opinionated by the stack though, and let the users choose their own tool, but still I like the idea of having the convenience of db migrations right there available to me by default when I'm using mean.
What do you guys think?
The text was updated successfully, but these errors were encountered: