Redgate Flyway

DocumentDB

  • Flyway configuration: Native Connectors only
  • Verified Versions: docdb 5.0.0
  • Maintainer: Redgate

Supported Versions and Support Levels

Driver

Item Details
URL format mongodb://ip address:port number/database_name
SSL support Yes
Ships with Flyway Command-line JSON migrations: Yes.
Javascript migrations requires Mongosh to be installed separately
Maven Central coordinates n/a

Using Flyway with MongoDB Native Connectors

Observations

AWS DocumentDB aims to be MongoDB compatible - as such we use the Flyway MongoDB infrastructure and can only verify that Flyway's verb testing works.

Limitations

The Flyway Native Connectors blog post describes more of the details of the Native Connectors changes.

  • Transactions are only available with JSON migrations (these use the API and not Mongosh)
  • Dry run is not available

Terminology

We have to map Flyway concepts and language rooted in the relational database world to MongoDB - this is how Flyway sees the mapping:

MongoDB Concept Flyway Concept
database database/schema
collection table
row document
transaction transaction

Didn't find what you were looking for?