public class MigrateDatabase100To200 extends java.lang.Object implements Migration
Migration to repair datastores impacted by issues 326 and 329.
Added migration on `Datastore` opening to repair datastores that have documents with multiple identical revision IDs (as caused by issue #329). The migration will delete duplicate revisions and correct the document tree. It will also re-evaluate the winning revision resolving issues caused by #326.
It also deletes duplicate entries with the same sequence and attachment filename, which could have been force inserted into the attachments table during a multipart attachment pull during identical replications running in parallel.
Constructor and Description |
---|
MigrateDatabase100To200(java.lang.String[] schemaUpdates) |
Modifier and Type | Method and Description |
---|---|
void |
runMigration(SQLDatabase db)
Implementors should run all migration steps in this method.
|
public MigrateDatabase100To200(java.lang.String[] schemaUpdates)
public void runMigration(SQLDatabase db) throws java.lang.Exception
Migration
runMigration
in interface Migration
db
- The SQLDatabase
to migratejava.lang.Exception
- an exception was thrown during migration