diff --git a/src/main/java/liquibase/nosql/snapshot/NoSqlSnapshotGenerator.java b/src/main/java/liquibase/nosql/snapshot/NoSqlSnapshotGenerator.java index 4b8ff84d..557adf07 100644 --- a/src/main/java/liquibase/nosql/snapshot/NoSqlSnapshotGenerator.java +++ b/src/main/java/liquibase/nosql/snapshot/NoSqlSnapshotGenerator.java @@ -2,6 +2,7 @@ import liquibase.database.Database; import liquibase.exception.DatabaseException; +import liquibase.ext.mongodb.database.MongoLiquibaseDatabase; import liquibase.snapshot.DatabaseSnapshot; import liquibase.snapshot.InvalidExampleException; import liquibase.snapshot.SnapshotGenerator; @@ -13,7 +14,10 @@ public class NoSqlSnapshotGenerator implements SnapshotGenerator { @Override public int getPriority(Class objectType, Database database) { - return PRIORITY_SPECIALIZED; + if (database instanceof MongoLiquibaseDatabase) { + return PRIORITY_SPECIALIZED; + } + return PRIORITY_NONE; } @Override