mongock

Does Mongock support Mongo version 2.x?


I have to execute migrations on the mongo server version: 2.6.10. I use mongock-springboot 5.2.4, spring boot version 2.7.2 and spring-data-mongodb version 3.4.2.

I don't think it's possible[1], but I'm not sure hence the question.

[1]


Is it possible to use mongock with mongo db 2.x ?


Solution

  • Yeah, you are right. As MongoDB being in version 6.x, Mongock doesn't provide support for earlier versions than 3.x.

    You can see MongoDB compatibility table here