Skip to content

Commit

Permalink
Decrease priority for non Mongo databases
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliimak committed Mar 24, 2023
1 parent fbdf540 commit 7722a4e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -13,7 +14,10 @@
public class NoSqlSnapshotGenerator implements SnapshotGenerator {
@Override
public int getPriority(Class<? extends DatabaseObject> objectType, Database database) {
return PRIORITY_SPECIALIZED;
if (database instanceof MongoLiquibaseDatabase) {
return PRIORITY_SPECIALIZED;
}
return PRIORITY_NONE;
}

@Override
Expand Down

0 comments on commit 7722a4e

Please sign in to comment.