Migrations for MongoDB
I see that the latest release server has migrations only for Postgres at the moment. I propose to create similar migrations for MongoDB users who want to upgrade from v1.3 to latest version. I would love to create a PR for the same. @ArekSredzki
How I plan to do that:
- Review migrations for Postgres.
- For MongoDB, I think only
UpdateandConstraintrelated command will be relevant. So write mongodb equivalent for those lines only. - Figure out how to integrate these new changes in
db-migratein the context of mongodb.
Questions I have
- As I see there some new collections/fields have been added, is there any requirement of writing bootstrap data as well?
- Any other suggestions before I jump into this?
Hi, I was looking around if I could find mongodb. Seeing that i prefer it all day any day over postgress. 2. Prob just write it in docs that mongo is supported.
Yes. I think what's pending to call it mongodb supported is this issue only i.e. "writing mongodb migrations". This project uses waterline ORM so you should be able to work with all the databases that waterline supports. But as I see that the author uses postgres as their choice of db and tests the project for that only. The migrations are written for that only. So when we upgrade the project while using mongodb, we can't say for sure that the application won't break.
While fixing this, ran into blocker issue #297