Skip to content

Commit

Permalink
Merge pull request #1 from Guschtel/liquibase-hibernate-718
Browse files Browse the repository at this point in the history
Removes validate differences when comparing an Oracle Database Schema against a Spring Jpa / HibernateDatabase, fixes liquibase#718
  • Loading branch information
iyanging authored Oct 6, 2024
2 parents 19ffdc0 + a33bed7 commit 3846949
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ public boolean supportsSchemas() {

@Override
public boolean supportsCatalogs() {
return false;
return true;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public Change[] fixChanged(DatabaseObject changedObject, ObjectDifferences diffe
if (referenceDatabase instanceof HibernateDatabase || comparisonDatabase instanceof HibernateDatabase) {
differences.removeDifference("deleteRule");
differences.removeDifference("updateRule");
differences.removeDifference("validate");
if (!differences.hasDifferences()) {
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public int getPriority(Class<? extends DatabaseObject> objectType, Database data
public Change[] fixChanged(DatabaseObject changedObject, ObjectDifferences differences, DiffOutputControl control, Database referenceDatabase, Database comparisonDatabase, ChangeGeneratorChain chain) {
if (referenceDatabase instanceof HibernateDatabase || comparisonDatabase instanceof HibernateDatabase) {
differences.removeDifference("unique");
differences.removeDifference("validate");
if (!differences.hasDifferences()) {
return null;
}
Expand Down

0 comments on commit 3846949

Please sign in to comment.