Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
53 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
0 votes
1 answer
162 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
-1 votes
1 answer
262 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,315
0 votes
1 answer
461 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
  • 13
0 votes
1 answer
431 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
1 answer
747 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,192
0 votes
2 answers
617 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
201 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
0 votes
0 answers
125 views

I'd ideally like to specify my changelog in JSON format, similar to Liquibase's JSON option, as follows below. Notably, I'd also like to do a substitution for the Integer value of clusterId at runtime ...
foj's user avatar
  • 7
0 votes
1 answer
588 views

With liquibase and Spring Boot I can do @DependsOn("liquibase") to wait when I have a @Bean creating method. This lets me create beans that depend on initialization data. How do I do this in ...
mikeb's user avatar
  • 11.5k
0 votes
1 answer
482 views

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'...
Filip Kowalski's user avatar
0 votes
1 answer
159 views

I try to update my mongock-core dependency to 4.3.8 (from 3.3.2) but it does not find the jar for the dependency. So i have checked on the maven central repository i am using (https://repo1.maven....
T.S.'s user avatar
  • 29
1 vote
1 answer
1k views

I have Java + maven project - https://github.com/petersuchy/mongock-test-java based on Mongock reactive example (https://github.com/mongock/mongock-examples/tree/master/mongodb/springboot-reactive) ...
Peters's user avatar
  • 35
0 votes
1 answer
509 views

Where is I should define scheme validation rules using mongock as migration tool? In official library examples it's placed in the @BeforeExecution section. Why?
Hett's user avatar
  • 3,865
0 votes
0 answers
194 views

how to autowired MongockTemplate in SpringBootTest? MongockTemplate does not autowired in @SpringBootTest I try: full exception: org.springframework.beans.factory.UnsatisfiedDependencyException: Error ...
Шатов Данил's user avatar
0 votes
1 answer
736 views

I have simple document class: public class Player { private String name; private String age; } I want to extend it with field Parameters: public class Player { private String name; ...
krzysiekcr's user avatar
0 votes
2 answers
2k views

I have quite large legacy multi module Java Spring boot project which connects to one MySql database and two Mongo databases (lets say codebook and report). I'm trying to setup Mongock to be able to ...
salerokada's user avatar
0 votes
1 answer
477 views

I need to initialize admin from env variables, but @BeforeExecution method is not launched, execution directly starts in initAdmin method. Any suggestions? @ChangeUnit(id = "init", order = &...
obolenskaya00's user avatar
1 vote
3 answers
963 views

I need to assure data migration using mongock. The @ChangeUnit class holds the logic for migration. It has a field annotated with @Value which is always null, even though I properly initialized in ...
obolenskaya00's user avatar
0 votes
0 answers
252 views

I have below structure in MongoDB : { "id" : "6c71-fea4-4bg6-a0bf-768n0n54t59", "continents" : [ { "id" : "45" , "countries&...
Techie's user avatar
  • 81
2 votes
1 answer
521 views

Please tell me how can I fulfill the following condition - if the time in the info.startDate field is not equal to 00 hours, increase the date (2021-05-27) by 1 day ahead, set the time to 00:00:00....
Сергей Воронин's user avatar
1 vote
1 answer
2k views

We recently migrated from MongoBee to Mongock, and with Mongock 5 version the @ChangeLog and @ChangeSet are depricated. Writing the @ChangeUnit is easy enough and rollback methods are very helpful. ...
Yadhukrishna's user avatar
  • 1,002
0 votes
1 answer
2k views

I have a question about performing downgrade together with Mongock. I got Java Spring application integrated with mongock and let's suppose that I upgraded my application from v1 to v2. During the ...
Pat Ko's user avatar
  • 159
0 votes
1 answer
331 views

We recently added MongoCk to our Spring 5 app (using the Spring runner), but are having some issues during our deploys. Our final step in the deploy process is a health check where the deployment ...
HDW's user avatar
  • 307
0 votes
0 answers
76 views

I've some collections on my database that have a 'Dynamic Name', Let's say that I've some collections that store Animals data from an specific country, So in my database Animals I would have the ...
Johnnes Souza's user avatar