Closed 1nF0rmed closed 2 years ago
@1nF0rmed
@Autowired R2dbcMigrateAutoConfiguration.R2dbcMigrateBlockingInvoker migrationInvoker;
and then restartmigrationInvoker.migrate();
@nkonev Sorry for the late response.
src/main/resources/db/migration
-> Executed
src/test/resources/test/migration
-> Did Not executeI did not realise that the migration number provided for the test migrations should be different from those in db/migrations
.
I was able to fix my issue by changing the migration number from V1
to V<BIGNUMBER>
.
I'm not sure if it was the optimal solution.
@1nF0rmed Please provide reproducer project.
I did not realise that the migration number provided for the test migrations should be different from those in
db/migrations
.I was able to fix my issue by changing the migration number from
V1
toV<BIGNUMBER>
. I'm not sure if it was the optimal solution.
@nkonev
Sorry, didn't see last sentence.
Yes, it is correct fix.
I am currently using the spring-starter dependency:
name.nkonev.r2dbc-migrate:r2dbc-migrate-spring-boot-starter:2.7.6
And while following the spring example, added migrations under:
src/main/resources/db/migration
src/test/resources/test/migration
and specified the same paths in the application.yml as:
But when running the tests, the test migrations are not run. Is there a way to trigger these via a gradle task or any configuration needs to be added for the same?