diff --git a/src/main/java/liquibase/ext/bigquery/diff/output/changelog/core/BigQueryChangedTableChangeGenerator.java b/src/main/java/liquibase/ext/bigquery/diff/output/changelog/core/BigQueryChangedTableChangeGenerator.java index ac189ac8..4ccdfafc 100644 --- a/src/main/java/liquibase/ext/bigquery/diff/output/changelog/core/BigQueryChangedTableChangeGenerator.java +++ b/src/main/java/liquibase/ext/bigquery/diff/output/changelog/core/BigQueryChangedTableChangeGenerator.java @@ -17,13 +17,14 @@ public class BigQueryChangedTableChangeGenerator extends ChangedTableChangeGener @Override public int getPriority(Class objectType, Database database) { + if (! (database instanceof BigQueryDatabase)) { + return PRIORITY_NONE; + } int priority = super.getPriority(objectType, database); if (priority == PRIORITY_NONE) { return priority; } - if (database instanceof BigQueryDatabase) { - priority += PRIORITY_DATABASE; - } + priority += PRIORITY_DATABASE; return priority; }