We are at a state in our application development where we will want to update several documents at the same time when we deploy a new version of our application.
Example of typical migration, let’s imagine we have several customer documents:
{
type: CUSTOMER
name: Alfred Hitchcock
}
Now the new version of our application needs to know the first and last name of our customer, so we need to create those fields:
{
type: CUSTOMER
name: {
firstName: Alfred,
lastName: Hitchcock
}
}
If we already have thousands of customers saved in our DB, that means that we need to decide on a migration strategy. What options are available for Couchbase? In the Java SQL world we’d use Flyway or Liquibase to keep track of migration scripts, is there something similar for Couchbase?