Flyway can be configured to execute migrations on a NoSQL database (i.e. via Java API) or it is designed only for relational databases?
There is no explicit support at this time. What you can however do is use Flyway in combination with both a relational and a NoSQL db. Flyway would then keep its metadata table in the relational DB and you would write Java migrations to migrate the NoSQL datastore.
It is now possible to use Flyway to perform NoSQL Migrations and is not just designed for relational databases. Migrations can be written using JavaScript and can run in Flyway using Flyway 'migrate' command for MongoDB. The MongoDB support is available in any version after v10.1.0. Other NoSQL Databases are going to be added in the future to Flyway such as Cassandra and Redis.
An alternative to flyway for MongoDB migration is Monjam (https://github.com/oun/monjam). It has gradle plugin to run the migration. You can write migration in java or js script.
© 2022 - 2024 — McMap. All rights reserved.