Skip to content

Commit

Permalink
Removes validate differences when comparing an Oracle Database Schema…
Browse files Browse the repository at this point in the history
… against a Spring Jpa / HibernateDatabase
  • Loading branch information
Guschtel authored and filipelautert committed Oct 8, 2024
1 parent cca484a commit db32749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 db32749

Please sign in to comment.