Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
73 views

I have a collection migrationTest in MongoDB with a unique index for the message field. In my migration I'm inserting documents to this collection and in one place I'm using the existing message to ...
maksim's user avatar
  • 498
1 vote
3 answers
241 views

We are in middle of a migration project where we want to migrate millions of documents from one mongo collection to another (or in certain cases add a new field to existing documents). During testing ...
vallish's user avatar
  • 25
0 votes
1 answer
175 views

I have a springboot application where am integrating mongock to add indices to the database. When I start the application, I see the below exception: Caused by: io.mongock.api.exception....
vallish's user avatar
  • 25
0 votes
1 answer
107 views

Is it possible to write in more than one database in Mongock? I am trying to write in 2 different databases using Mongock. @ChangeSet(order = "005", id = "changeWithMongockTemplate1&...
Amit Kumar's user avatar
-1 votes
1 answer
305 views

Mongock documents that the "default, expected and documented behaviour" for database migrations is to acquire a pessimistic lock on the whole database. It is, however, possible to run a ...
julaine's user avatar
  • 2,792
0 votes
1 answer
137 views

Looking through the example documentation, it seems that Mongock does not embed any sort of ordering in the ChangeUnit filename. For example, the "Get Started" docs show the following code ...
IcedDante's user avatar
  • 7,027
1 vote
1 answer
530 views

I have a ChangeUnit for deleting one collection in my database. The migration has already been done and such change will no longer be required. I am wondering if I can delete the class and get rid of ...
Lil's user avatar
  • 23
0 votes
0 answers
363 views

I am switching a Spring boot application that currently uses Mongo DB, to AWS Document DB. The application uses Mongock to run some scripts to setup the database when it starts up. Now, when I disable ...
sonic-cloud-arch's user avatar
0 votes
1 answer
473 views

Able to execute Mongock changelog files successfully in local but changelog files not executing when I am deploying application jar to the server . I am not getting any error as well. I can see ...
Amit Patil's user avatar
0 votes
2 answers
1k views

I have a class @Data @NoArgsConstructor @AllArgsConstructor @Document("animal") public class Animal { private String id; private boolean isBirthYear; } I want to update class to: @...
hungtam's user avatar
  • 43
0 votes
1 answer
772 views

Each time I try to create an index on a collection with mongock I have this error: Command createIndexes does not support this transaction's { readConcern: { level: "majority", provenance: &...
sab's user avatar
  • 5,252
0 votes
1 answer
245 views

I have created a Kotlin application that connects to a MongoDB on Atlas to fetch some data via Spring Data JPA. For future changes to the document structure, I have experimented with Mongock. I have ...
observer's user avatar
  • 3,017
0 votes
2 answers
646 views

How do I make the ChangeUnit work with other spring beans in my app? I've tried adding dependencies to the ChangeUnit via construction injection and setter injection, and using post construct to build ...
Anadi Misra's user avatar
  • 2,113
0 votes
1 answer
602 views

I have an app in Spring Boot and use Mogock with MongoDB. Recently, I made a big refactoring and changed many class names and collection names. What I used to have before refactoring is an entity ...
Whistleroosh's user avatar
0 votes
1 answer
210 views

I currently have four ChangeUnits written as follows: id="system-codes-initializer" (runAlways=true) id="source-config-initializer" (runAlways=true) id="action-box-...
foj's user avatar
  • 7

15 30 50 per page
1
2 3 4 5